public interface AuthorizationPlugin extends AuthProviderLifecycle
If the configuration setting dbms.security.plugin.authorization_enabled is set to true, all objects that implements this interface that exists in the class path at Neo4j startup, will be loaded as services.
NOTE: If the same object also implements AuthenticationPlugin, it will not be loaded twice.
| Modifier and Type | Interface and Description |
|---|---|
static class |
AuthorizationPlugin.Adapter |
static class |
AuthorizationPlugin.PrincipalAndProvider
An object containing a principal and its corresponding authentication provider.
|
| Modifier and Type | Method and Description |
|---|---|
AuthorizationInfo |
authorize(Collection<AuthorizationPlugin.PrincipalAndProvider> principals)
Should perform authorization of the given collection of principals and their corresponding authentication
providers, and return an AuthorizationInfo result that contains a collection of roles
that are assigned to the given principals.
|
String |
name()
The name of this authorization provider.
|
initialize, shutdown, start, stopString name()
This name, prepended with the prefix "plugin-", can be used by a client to direct an auth token directly to this authorization provider.
AuthorizationInfo authorize(Collection<AuthorizationPlugin.PrincipalAndProvider> principals)
principals - a collection of principals and their corresponding authentication providersCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.