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
-
-
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.
-
-
-
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
-
-