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>
ASecurityFactory
implementation which returns null every time.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static NullSecurityFactory<Object>
INSTANCE
-
Constructor Summary
Constructors Constructor Description NullSecurityFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
create()
Create an instance.static <T> NullSecurityFactory<T>
getInstance()
Gets an instance of this singleton class.
-
-
-
Field Detail
-
INSTANCE
static final NullSecurityFactory<Object> INSTANCE
-
-
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:SecurityFactory
Create an instance.- Specified by:
create
in interfaceSecurityFactory<T>
- Returns:
- the new instance
- Throws:
GeneralSecurityException
- if instantiation fails for some reason
-
-