public class HMACAuthenticator extends JanusGraphAbstractAuthenticator
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_HMAC_ALGO
Hmac algorithm defaults to hmacsha256
|
static String |
CONFIG_HMAC_SECRET
Hmac secret config
|
static String |
CONFIG_TOKEN_TIMEOUT
How long an auth token should stay valid
|
CONFIG_DEFAULT_PASSWORD, CONFIG_DEFAULT_USER, USERNAME_INDEX_NAME| Constructor and Description |
|---|
HMACAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.tinkerpop.gremlin.server.auth.AuthenticatedUser |
authenticate(Map<String,String> credentials) |
org.apache.tinkerpop.gremlin.server.auth.Authenticator.SaslNegotiator |
newSaslNegotiator() |
org.apache.tinkerpop.gremlin.server.auth.Authenticator.SaslNegotiator |
newSaslNegotiator(InetAddress remoteAddress) |
boolean |
requireAuthentication() |
void |
setup(Map<String,Object> config) |
createCredentials, findUser, openGraphpublic static final String CONFIG_HMAC_ALGO
public static final String CONFIG_TOKEN_TIMEOUT
public static final String CONFIG_HMAC_SECRET
public boolean requireAuthentication()
requireAuthentication in interface org.apache.tinkerpop.gremlin.server.auth.AuthenticatorrequireAuthentication in class JanusGraphAbstractAuthenticatorpublic org.apache.tinkerpop.gremlin.server.auth.Authenticator.SaslNegotiator newSaslNegotiator(InetAddress remoteAddress)
newSaslNegotiator in interface org.apache.tinkerpop.gremlin.server.auth.AuthenticatornewSaslNegotiator in class JanusGraphAbstractAuthenticatorpublic org.apache.tinkerpop.gremlin.server.auth.Authenticator.SaslNegotiator newSaslNegotiator()
public void setup(Map<String,Object> config)
setup in interface org.apache.tinkerpop.gremlin.server.auth.Authenticatorsetup in class JanusGraphAbstractAuthenticatorCopyright © 2012–2024. All rights reserved.