Class Settings.AuthenticationSettings
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.server.Settings.AuthenticationSettings
-
- Enclosing class:
- Settings
public static class Settings.AuthenticationSettings extends Object
Settings for theAuthenticatorimplementation.
-
-
Field Summary
Fields Modifier and Type Field Description StringauthenticationHandlerThe fully qualified class name of theAbstractAuthenticationHandlerimplementation.StringauthenticatorThe fully qualified class name of theAuthenticatorimplementation.Map<String,Object>configAMapcontainingAuthenticatorspecific configurations.static intDEFAULT_MAX_DEFERRED_REQUESTSDefault formaxDeferredRequests.static longDEFAULT_MAX_PRE_AUTH_RETAINED_BYTESDefault formaxPreAuthRetainedBytes.static longDEFAULT_PRE_AUTH_TIMEOUTDefault forpreAuthTimeout.intmaxDeferredRequestsNumber of requests a channel may defer while its SASL authentication is pending.longmaxPreAuthRetainedBytesTotal wire bytes a channel may have retained while its SASL authentication is pending, covering the request that started it as well as the deferred ones.longpreAuthTimeoutTime in milliseconds a channel may stay unauthenticated, covering the whole handshake and not just the deferral window, after which it is closed.
-
Constructor Summary
Constructors Constructor Description AuthenticationSettings()
-
-
-
Field Detail
-
DEFAULT_MAX_DEFERRED_REQUESTS
public static final int DEFAULT_MAX_DEFERRED_REQUESTS
Default formaxDeferredRequests.- See Also:
- Constant Field Values
-
DEFAULT_MAX_PRE_AUTH_RETAINED_BYTES
public static final long DEFAULT_MAX_PRE_AUTH_RETAINED_BYTES
Default formaxPreAuthRetainedBytes.- See Also:
- Constant Field Values
-
DEFAULT_PRE_AUTH_TIMEOUT
public static final long DEFAULT_PRE_AUTH_TIMEOUT
Default forpreAuthTimeout.
-
authenticator
public String authenticator
The fully qualified class name of theAuthenticatorimplementation. This class name will be used to load the implementation from the classpath. Defaults toAllowAllAuthenticatorwhen not specified.
-
authenticationHandler
public String authenticationHandler
The fully qualified class name of theAbstractAuthenticationHandlerimplementation. This class name will be used to load the implementation from the classpath. Defaults to null when not specified.
-
config
public Map<String,Object> config
AMapcontainingAuthenticatorspecific configurations. Consult theAuthenticatorimplementation for specifics on what configurations are expected.
-
maxDeferredRequests
public int maxDeferredRequests
Number of requests a channel may defer while its SASL authentication is pending. Must be greater than zero. Only applies toSaslAuthenticationHandlerand its subclasses.
-
maxPreAuthRetainedBytes
public long maxPreAuthRetainedBytes
Total wire bytes a channel may have retained while its SASL authentication is pending, covering the request that started it as well as the deferred ones. Deserialized, their heap footprint is a multiple of this. Must be greater than zero. Only applies toSaslAuthenticationHandlerand its subclasses.
-
preAuthTimeout
public long preAuthTimeout
Time in milliseconds a channel may stay unauthenticated, covering the whole handshake and not just the deferral window, after which it is closed. Must be greater than zero. Only applies toSaslAuthenticationHandlerand its subclasses.
-
-