Package org.wildfly.security.sasl.util
Class AuthenticationTimeoutSaslServerFactory
- java.lang.Object
- 
- org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
- 
- org.wildfly.security.sasl.util.AuthenticationTimeoutSaslServerFactory
 
 
- 
- All Implemented Interfaces:
- SaslServerFactory
 
 public final class AuthenticationTimeoutSaslServerFactory extends AbstractDelegatingSaslServerFactory ASaslServerFactorywhich adds authentication timeout functionality to a delegateSaslServerFactory.This SaslServerFactorymust be outside of theAuthenticationCompleteCallbackSaslServerFactoryin the chain of SASL server factories.- Author:
- Farah Juma
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description private static classAuthenticationTimeoutSaslServerFactory.DelegatingTimeoutSaslServer
 - 
Field SummaryFields Modifier and Type Field Description static longDEFAULT_TIMEOUTThe default amount of time, in seconds, after which an authentication attempt should time out.private ScheduledExecutorServicescheduledExecutorService- 
Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactorydelegate
 
- 
 - 
Constructor SummaryConstructors Constructor Description AuthenticationTimeoutSaslServerFactory(SaslServerFactory delegate, ScheduledExecutorService scheduledExecutorService)Construct a new instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SaslServercreateSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)private longgetTimeout(Map<String,?> props)- 
Methods inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactorydelegatesThrough, delegatesThroughNN, getMechanismNames, toString
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_TIMEOUTpublic static final long DEFAULT_TIMEOUT The default amount of time, in seconds, after which an authentication attempt should time out.- See Also:
- Constant Field Values
 
 - 
scheduledExecutorServiceprivate final ScheduledExecutorService scheduledExecutorService 
 
- 
 - 
Constructor Detail- 
AuthenticationTimeoutSaslServerFactorypublic AuthenticationTimeoutSaslServerFactory(SaslServerFactory delegate, ScheduledExecutorService scheduledExecutorService) Construct a new instance.- Parameters:
- delegate- the delegate- SaslServerFactory
- scheduledExecutorService- the scheduled executor to use to handle authentication timeout tasks
 
 
- 
 - 
Method Detail- 
createSaslServerpublic SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException - Specified by:
- createSaslServerin interface- SaslServerFactory
- Overrides:
- createSaslServerin class- AbstractDelegatingSaslServerFactory
- Throws:
- SaslException
 
 
- 
 
-