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>
ASecurityFactoryimplementation which only throws specified exception on create.- Author:
 - David M. Lloyd
 
 
- 
- 
Constructor Summary
Constructors Constructor Description FailedSecurityFactory(GeneralSecurityException exception)Creates a new factory instance. 
 - 
 
- 
- 
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:SecurityFactoryCreate an instance.- Specified by:
 createin interfaceSecurityFactory<T>- Returns:
 - the new instance
 - Throws:
 GeneralSecurityException- if instantiation fails for some reason
 
 - 
 
 -