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