
public final class AuthenticationTimeoutSaslServerFactory extends AbstractDelegatingSaslServerFactory
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.
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_TIMEOUT
The default amount of time, in seconds, after which an authentication attempt should time out.
|
delegate| Constructor and Description |
|---|
AuthenticationTimeoutSaslServerFactory(SaslServerFactory delegate,
ScheduledExecutorService scheduledExecutorService)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
SaslServer |
createSaslServer(String mechanism,
String protocol,
String serverName,
Map<String,?> props,
CallbackHandler cbh) |
delegatesThrough, getMechanismNames, toStringpublic static final long DEFAULT_TIMEOUT
public AuthenticationTimeoutSaslServerFactory(SaslServerFactory delegate, ScheduledExecutorService scheduledExecutorService)
delegate - the delegate SaslServerFactoryscheduledExecutorService - the scheduled executor to use to handle authentication timeout taskspublic SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
createSaslServer in interface SaslServerFactorycreateSaslServer in class AbstractDelegatingSaslServerFactorySaslExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.