public interface AuthPlugin extends AuthProviderLifecycle
If either the configuration setting dbms.security.plugin.authentication_enabled or 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.
AuthenticationPlugin,
AuthorizationPlugin| Modifier and Type | Interface and Description |
|---|---|
static class |
AuthPlugin.Adapter |
static class |
AuthPlugin.CachingEnabledAdapter |
| Modifier and Type | Method and Description |
|---|---|
AuthInfo |
authenticateAndAuthorize(AuthToken authToken)
Should perform both authentication and authorization of the identity in the given auth token and return an
AuthInfo result if successful.
|
String |
name()
The name of this auth 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 auth provider.
AuthInfo authenticateAndAuthorize(AuthToken authToken) throws AuthenticationException
If authentication caching is enabled, then a CacheableAuthInfo should be returned.
AuthenticationExceptionAuthToken,
AuthenticationInfo,
CacheableAuthenticationInfo,
CustomCacheableAuthenticationInfo,
AuthProviderOperations.setAuthenticationCachingEnabled(boolean)Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.