Package org.wildfly.security
Class FailedSecurityFactory<T>
java.lang.Object
org.wildfly.security.FailedSecurityFactory<T>
- All Implemented Interfaces:
SecurityFactory<T>
A
SecurityFactory implementation which only throws specified exception on create.- Author:
- David M. Lloyd
-
Constructor Summary
ConstructorsConstructorDescriptionFailedSecurityFactory(GeneralSecurityException exception) Creates a new factory instance. -
Method Summary
-
Constructor Details
-
FailedSecurityFactory
Creates a new factory instance.- Parameters:
exception- the exception to be thrown on create
-
-
Method Details
-
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
-