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
A
SaslServerFactory which adds authentication timeout functionality to a delegate SaslServerFactory.
This SaslServerFactory must be outside of the AuthenticationCompleteCallbackSaslServerFactory in the
chain of SASL server factories.
- Author:
- Farah Juma
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longThe default amount of time, in seconds, after which an authentication attempt should time out.Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegate -
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationTimeoutSaslServerFactory(SaslServerFactory delegate, ScheduledExecutorService scheduledExecutorService) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptioncreateSaslServer(String mechanism, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) Methods inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegatesThrough, getMechanismNames, toString
-
Field Details
-
DEFAULT_TIMEOUT
public static final long DEFAULT_TIMEOUTThe default amount of time, in seconds, after which an authentication attempt should time out.- See Also:
-
-
Constructor Details
-
AuthenticationTimeoutSaslServerFactory
public AuthenticationTimeoutSaslServerFactory(SaslServerFactory delegate, ScheduledExecutorService scheduledExecutorService) Construct a new instance.- Parameters:
delegate- the delegateSaslServerFactoryscheduledExecutorService- the scheduled executor to use to handle authentication timeout tasks
-
-
Method Details
-
createSaslServer
public SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) throws SaslException- Specified by:
createSaslServerin interfaceSaslServerFactory- Overrides:
createSaslServerin classAbstractDelegatingSaslServerFactory- Throws:
SaslException
-