public interface AuthToken
A common scenario is to have principal be a username and credentials be a password.
| Modifier and Type | Method and Description |
|---|---|
char[] |
credentials()
Returns the credentials that verifies the identity.
|
Map<String,Object> |
parameters()
Returns an optional custom parameter map if provided by the client.
|
String |
principal()
Returns the identity to authenticate.
|
String principal()
Most commonly this is a username.
char[] credentials()
Most commonly this is a password.
The reason this is a character array and not a String, is so that sensitive information can be cleared from memory after useage without having to wait for the garbage collector to act.
Map<String,Object> parameters()
This can be used as a vehicle to send arbitrary auth data from a client application to a server-side auth plugin. Neo4j will act as a pure transport and will not touch the contents of this map.
Copyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.