Package org.wildfly.security
Class NullSecurityFactory<T>
- java.lang.Object
 - 
- org.wildfly.security.NullSecurityFactory<T>
 
 
- 
- All Implemented Interfaces:
 SecurityFactory<T>
public final class NullSecurityFactory<T> extends Object implements SecurityFactory<T>
ASecurityFactoryimplementation which returns null every time.- Author:
 - David M. Lloyd
 
 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Tcreate()Create an instance.static <T> NullSecurityFactory<T>getInstance()Gets an instance of this singleton class. 
 - 
 
- 
- 
Method Detail
- 
getInstance
public static <T> NullSecurityFactory<T> getInstance()
Gets an instance of this singleton class.- Type Parameters:
 T- the type of the security factory- Returns:
 - the only instance of this factory
 
 
- 
create
public T create() throws GeneralSecurityException
Description copied from interface:SecurityFactoryCreate an instance.- Specified by:
 createin interfaceSecurityFactory<T>- Returns:
 - the new instance
 - Throws:
 GeneralSecurityException- if instantiation fails for some reason
 
 - 
 
 -