Package org.wildfly.security
Class NullSecurityFactory<T>
java.lang.Object
org.wildfly.security.NullSecurityFactory<T>
- All Implemented Interfaces:
SecurityFactory<T>
A
SecurityFactory implementation which returns null every time.- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptioncreate()Create an instance.static <T> NullSecurityFactory<T>Gets an instance of this singleton class.
-
Method Details
-
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
Description copied from interface:SecurityFactoryCreate an instance.- Specified by:
createin interfaceSecurityFactory<T>- Returns:
- the new instance
- Throws:
GeneralSecurityException- if instantiation fails for some reason
-