Class Settings.AuthorizationSettings
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.server.Settings.AuthorizationSettings
-
- Enclosing class:
- Settings
public static class Settings.AuthorizationSettings extends Object
Settings for theAuthenticatorimplementation.
-
-
Field Summary
Fields Modifier and Type Field Description StringauthorizerThe fully qualified class name of theAuthorizerimplementation.Map<String,Object>configAMapcontainingAuthorizerspecific configurations.
-
Constructor Summary
Constructors Constructor Description AuthorizationSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Authorizer>getAuthorizerInstance()Gets theAuthorizerthat Gremlin Server uses for these settings, if one was created or set withoverrideAuthorizer(Authorizer).voidoverrideAuthorizer(Authorizer authorizer)When this value is set, it is theAuthorizerthat Gremlin Server uses and theauthorizerandconfigsettings are ignored.
-
-
-
Field Detail
-
authorizer
public String authorizer
The fully qualified class name of theAuthorizerimplementation. 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
AMapcontainingAuthorizerspecific configurations. Consult theAuthorizerimplementation for specifics on what configurations are expected.
-
-
Method Detail
-
overrideAuthorizer
public void overrideAuthorizer(Authorizer authorizer)
When this value is set, it is theAuthorizerthat Gremlin Server uses and theauthorizerandconfigsettings are ignored. Gremlin Server sets it to theAuthorizerit creates from those settings, so that every channelizer and handler that shares these settings uses the same instance. The instance stays on these settings, so a server started again with the sameSettingsobject reuses theAuthorizerthat was already set up rather than creating a new one.
-
getAuthorizerInstance
public Optional<Authorizer> getAuthorizerInstance()
Gets theAuthorizerthat Gremlin Server uses for these settings, if one was created or set withoverrideAuthorizer(Authorizer).
-
-