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, toString
public static final long DEFAULT_TIMEOUT
public AuthenticationTimeoutSaslServerFactory(SaslServerFactory delegate, ScheduledExecutorService scheduledExecutorService)
delegate
- the delegate SaslServerFactory
scheduledExecutorService
- 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 SaslServerFactory
createSaslServer
in class AbstractDelegatingSaslServerFactory
SaslException
Copyright © 2020 JBoss by Red Hat. All rights reserved.