Package org.wildfly.security.auth.server
Interface MechanismAuthenticationFactory.Builder<M,F,E extends Exception>
- Type Parameters:
M- the type of mechanismF- the type of the mechanism's factoryE- the mechanism-type-specific exception that may be thrown upon instantiation
- All Known Implementing Classes:
AbstractMechanismAuthenticationFactory.Builder
- Enclosing interface:
- MechanismAuthenticationFactory<M,
F, E extends Exception>
public static interface MechanismAuthenticationFactory.Builder<M,F,E extends Exception>
A builder for a
MechanismAuthenticationFactory.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the mechanism factory.setFactory(F factory) Set the mechanism's underlying factory.setMechanismConfigurationSelector(MechanismConfigurationSelector mechanismConfigurationSelector) Set theMechanismConfigurationSelectorfor the factory being built.setSecurityDomain(SecurityDomain securityDomain) Set the security domain to be used for this factory (may not benull).
-
Method Details
-
setSecurityDomain
Set the security domain to be used for this factory (may not benull).- Parameters:
securityDomain- the security domain (may not benull)- Returns:
- this builder
-
setMechanismConfigurationSelector
MechanismAuthenticationFactory.Builder<M,F, setMechanismConfigurationSelectorE> (MechanismConfigurationSelector mechanismConfigurationSelector) Set theMechanismConfigurationSelectorfor the factory being built.- Parameters:
mechanismConfigurationSelector- theMechanismConfigurationSelectorfor the factory being built.- Returns:
- this builder
-
setFactory
Set the mechanism's underlying factory.- Parameters:
factory- the factory (must not benull)- Returns:
- this builder
-
build
MechanismAuthenticationFactory<M,F, build()E> Build the mechanism factory.- Returns:
- the mechanism factory
-