Package org.wildfly.security
Class FailedSecurityFactory<T>
- java.lang.Object
-
- org.wildfly.security.FailedSecurityFactory<T>
-
- All Implemented Interfaces:
SecurityFactory<T>
public final class FailedSecurityFactory<T> extends Object implements SecurityFactory<T>
ASecurityFactory
implementation which only throws specified exception on create.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private GeneralSecurityException
exception
-
Constructor Summary
Constructors Constructor Description FailedSecurityFactory(GeneralSecurityException exception)
Creates a new factory instance.
-
-
-
Field Detail
-
exception
private final GeneralSecurityException exception
-
-
Constructor Detail
-
FailedSecurityFactory
public FailedSecurityFactory(GeneralSecurityException exception)
Creates a new factory instance.- Parameters:
exception
- the exception to be thrown on create
-
-
Method Detail
-
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
-
-