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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SaslAuthenticationFactory
build()
Build the mechanism factory.ScheduledExecutorService
getScheduledExecutorService()
Get the scheduled executor service.SaslAuthenticationFactory.Builder
setFactory(SaslServerFactory factory)
Set the mechanism's underlying factory.SaslAuthenticationFactory.Builder
setMechanismConfigurationSelector(MechanismConfigurationSelector mechanismConfigurationSelector)
Set theMechanismConfigurationSelector
for the factory being built.SaslAuthenticationFactory.Builder
setScheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
Set the scheduled executor service.SaslAuthenticationFactory.Builder
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 Detail
-
setSecurityDomain
public SaslAuthenticationFactory.Builder setSecurityDomain(SecurityDomain securityDomain)
Description copied from interface:MechanismAuthenticationFactory.Builder
Set the security domain to be used for this factory (may not benull
).- Specified by:
setSecurityDomain
in interfaceMechanismAuthenticationFactory.Builder<SaslServer,SaslServerFactory,SaslException>
- Overrides:
setSecurityDomain
in 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.Builder
Set theMechanismConfigurationSelector
for the factory being built.- Specified by:
setMechanismConfigurationSelector
in interfaceMechanismAuthenticationFactory.Builder<SaslServer,SaslServerFactory,SaslException>
- Overrides:
setMechanismConfigurationSelector
in classAbstractMechanismAuthenticationFactory.Builder<SaslServer,SaslServerFactory,SaslException>
- Parameters:
mechanismConfigurationSelector
- theMechanismConfigurationSelector
for the factory being built.- Returns:
- this builder
-
setFactory
public SaslAuthenticationFactory.Builder setFactory(SaslServerFactory factory)
Description copied from interface:MechanismAuthenticationFactory.Builder
Set the mechanism's underlying factory.- Specified by:
setFactory
in interfaceMechanismAuthenticationFactory.Builder<SaslServer,SaslServerFactory,SaslException>
- Overrides:
setFactory
in classAbstractMechanismAuthenticationFactory.Builder<SaslServer,SaslServerFactory,SaslException>
- Parameters:
factory
- the factory (must not benull
)- Returns:
- this builder
-
setScheduledExecutorService
public SaslAuthenticationFactory.Builder setScheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
Set the scheduled executor service.- Parameters:
scheduledExecutorService
- the scheduled executor service.- Returns:
- this builder
-
getScheduledExecutorService
public ScheduledExecutorService getScheduledExecutorService()
Get the scheduled executor service.- Returns:
- scheduled executor service (may be
null
)
-
build
public SaslAuthenticationFactory build()
Description copied from interface:MechanismAuthenticationFactory.Builder
Build the mechanism factory.- Returns:
- the mechanism factory
-
-