Class SaslAuthenticationFactory.Builder
java.lang.Object
org.wildfly.security.auth.server.AbstractMechanismAuthenticationFactory.Builder<SaslServer,SaslServerFactory,SaslException>
org.wildfly.security.auth.server.sasl.SaslAuthenticationFactory.Builder
- All Implemented Interfaces:
MechanismAuthenticationFactory.Builder<SaslServer,SaslServerFactory, SaslException>
- Enclosing class:
- SaslAuthenticationFactory
public static final class SaslAuthenticationFactory.Builder
extends AbstractMechanismAuthenticationFactory.Builder<SaslServer,SaslServerFactory,SaslException>
A builder for SASL server factory configurations.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the mechanism factory.Get the scheduled executor service.setFactory(SaslServerFactory factory) Set the mechanism's underlying factory.setMechanismConfigurationSelector(MechanismConfigurationSelector mechanismConfigurationSelector) Set theMechanismConfigurationSelectorfor the factory being built.setProperties(Map<String, Object> properties) setScheduledExecutorService(ScheduledExecutorService scheduledExecutorService) Set the scheduled executor service.setSecurityDomain(SecurityDomain securityDomain) Set the security domain to be used for this factory (may not benull).Methods inherited from class org.wildfly.security.auth.server.AbstractMechanismAuthenticationFactory.Builder
getFactory, getMechanismConfigurationSelector, getSecurityDomain
-
Method Details
-
setSecurityDomain
Description copied from interface:MechanismAuthenticationFactory.BuilderSet the security domain to be used for this factory (may not benull).- Specified by:
setSecurityDomainin interfaceMechanismAuthenticationFactory.Builder<SaslServer,SaslServerFactory, SaslException> - Overrides:
setSecurityDomainin classAbstractMechanismAuthenticationFactory.Builder<SaslServer,SaslServerFactory, SaslException> - Parameters:
securityDomain- the security domain (may not benull)- Returns:
- this builder
-
setMechanismConfigurationSelector
public SaslAuthenticationFactory.Builder setMechanismConfigurationSelector(MechanismConfigurationSelector mechanismConfigurationSelector) Description copied from interface:MechanismAuthenticationFactory.BuilderSet theMechanismConfigurationSelectorfor the factory being built.- Specified by:
setMechanismConfigurationSelectorin interfaceMechanismAuthenticationFactory.Builder<SaslServer,SaslServerFactory, SaslException> - Overrides:
setMechanismConfigurationSelectorin classAbstractMechanismAuthenticationFactory.Builder<SaslServer,SaslServerFactory, SaslException> - Parameters:
mechanismConfigurationSelector- theMechanismConfigurationSelectorfor the factory being built.- Returns:
- this builder
-
setFactory
Description copied from interface:MechanismAuthenticationFactory.BuilderSet the mechanism's underlying factory.- Specified by:
setFactoryin interfaceMechanismAuthenticationFactory.Builder<SaslServer,SaslServerFactory, SaslException> - Overrides:
setFactoryin classAbstractMechanismAuthenticationFactory.Builder<SaslServer,SaslServerFactory, SaslException> - Parameters:
factory- the factory (must not benull)- Returns:
- this builder
-
setProperties
-
setScheduledExecutorService
public SaslAuthenticationFactory.Builder setScheduledExecutorService(ScheduledExecutorService scheduledExecutorService) Set the scheduled executor service.- Parameters:
scheduledExecutorService- the scheduled executor service.- Returns:
- this builder
-
getScheduledExecutorService
Get the scheduled executor service.- Returns:
- scheduled executor service (may be
null)
-
build
Description copied from interface:MechanismAuthenticationFactory.BuilderBuild the mechanism factory.- Returns:
- the mechanism factory
-