public class AuthTokens extends Object
GraphDatabase.driver(String, AuthToken)| Constructor and Description |
|---|
AuthTokens() |
| Modifier and Type | Method and Description |
|---|---|
static AuthToken |
basic(String username,
String password)
The basic authentication scheme, using a username and a password.
|
static AuthToken |
basic(String username,
String password,
String realm)
The basic authentication scheme, using a username and a password.
|
static AuthToken |
custom(String principal,
String credentials,
String realm,
String scheme)
A custom authentication token used for doing custom authentication on the server side.
|
static AuthToken |
custom(String principal,
String credentials,
String realm,
String scheme,
Map<String,Object> parameters)
A custom authentication token used for doing custom authentication on the server side.
|
static AuthToken |
kerberos(String base64EncodedTicket)
The kerberos authentication scheme, using a base64 encoded ticket
|
static AuthToken |
none()
No authentication scheme.
|
public static AuthToken basic(String username, String password)
username - this is the "principal", identifying who this token representspassword - this is the "credential", proving the identity of the userGraphDatabase.driver(String, AuthToken)public static AuthToken basic(String username, String password, String realm)
username - this is the "principal", identifying who this token representspassword - this is the "credential", proving the identity of the userrealm - this is the "realm", specifies the authentication providerGraphDatabase.driver(String, AuthToken)public static AuthToken kerberos(String base64EncodedTicket)
base64EncodedTicket - a base64 encoded service ticketGraphDatabase.driver(String, AuthToken)public static AuthToken custom(String principal, String credentials, String realm, String scheme)
principal - this used to identify who this token representscredentials - this is credentials authenticating the principalrealm - this is the "realm:, specifying the authentication provider.scheme - this it the authentication scheme, specifying what kind of authentication that should be usedGraphDatabase.driver(String, AuthToken)public static AuthToken custom(String principal, String credentials, String realm, String scheme, Map<String,Object> parameters)
principal - this used to identify who this token representscredentials - this is credentials authenticating the principalrealm - this is the "realm:, specifying the authentication provider.scheme - this it the authentication scheme, specifying what kind of authentication that shoud be usedparameters - extra parameters to be sent along the authentication provider.GraphDatabase.driver(String, AuthToken)public static AuthToken none()
GraphDatabase.driver(String, AuthToken)Copyright © 2017. All rights reserved.