public interface AuthInfo extends Serializable
This result type combines authentication and authorization information.
NOTE: If authentication caching is enabled the result type CacheableAuthInfo should be used instead.
| Modifier and Type | Method and Description |
|---|---|
static AuthInfo |
of(Object principal,
Collection<String> roles) |
Object |
principal()
Should return a principal that uniquely identifies the authenticated subject within this auth provider.
|
Collection<String> |
roles()
Should return the roles assigned to this principal.
|
Object principal()
Typically this is the same as the principal within the auth token map.
Collection<String> roles()
static AuthInfo of(Object principal, Collection<String> roles)
Copyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.