Uses of Interface
org.neo4j.driver.AuthToken
Package
Description
-
Uses of AuthToken in org.neo4j.driver
Modifier and TypeMethodDescriptionAuthTokenAndExpiration.authToken()
Returns theAuthToken
.static AuthToken
The basic authentication scheme, using a username and a password.static AuthToken
The basic authentication scheme, using a username and a password.static AuthToken
The bearer authentication scheme, using a base64 encoded token.static AuthToken
A custom authentication token used for doing custom authentication on the server side.static AuthToken
AuthTokens.custom
(String principal, String credentials, String realm, String scheme, Map<String, Object> parameters) A custom authentication token used for doing custom authentication on the server side.static AuthToken
The kerberos authentication scheme, using a base64 encoded ticketstatic AuthToken
AuthTokens.none()
No authentication scheme.Modifier and TypeMethodDescriptionAuthTokenManager.getToken()
Returns aCompletionStage
for a validAuthToken
.Modifier and TypeMethodDescriptionstatic Driver
Return a driver for a Neo4j instance with the default configuration settingsstatic Driver
GraphDatabase.driver
(String uri, AuthToken authToken, ClientCertificateManager clientCertificateManager) Returns a driver for a Neo4j instance with the providedAuthToken
andClientCertificateManager
.static Driver
GraphDatabase.driver
(String uri, AuthToken authToken, ClientCertificateManager clientCertificateManager, Config config) Returns a driver for a Neo4j instance with the providedAuthToken
,ClientCertificateManager
and driverConfig
.static Driver
Return a driver for a Neo4j instance with custom configuration.static Driver
Return a driver for a Neo4j instance with the default configuration settingsstatic Driver
GraphDatabase.driver
(URI uri, AuthToken authToken, ClientCertificateManager clientCertificateManager) Returns a driver for a Neo4j instance with the providedAuthToken
andClientCertificateManager
.static Driver
GraphDatabase.driver
(URI uri, AuthToken authToken, ClientCertificateManager clientCertificateManager, Config config) Returns a driver for a Neo4j instance with the providedAuthToken
,ClientCertificateManager
and driverConfig
.static Driver
Return a driver for a Neo4j instance with custom configuration.boolean
AuthTokenManager.handleSecurityException
(AuthToken authToken, SecurityException exception) HandlesSecurityException
that is created based on the server's security error response by determining if the given error may be resolved upon nextAuthTokenManager.getToken()
invokation.default <T extends BaseSession>
TInstantiate a new session of a supported type with the suppliedAuthToken
.<T extends BaseSession>
TDriver.session
(Class<T> sessionClass, SessionConfig sessionConfig, AuthToken sessionAuthToken) Instantiate a new session of a supported type with the suppliedsession configuration
andAuthToken
.boolean
Driver.verifyAuthentication
(AuthToken authToken) Verifies if the givenAuthToken
is valid.default ExecutableQuery
ExecutableQuery.withAuthToken
(AuthToken authToken) Sets anAuthToken
to be used for this query.Modifier and TypeMethodDescriptionstatic AuthTokenManager
Returns anAuthTokenManager
that manages basicAuthToken
instances.static AuthTokenManager
AuthTokenManagers.basicAsync
(Supplier<CompletionStage<AuthToken>> newTokenStageSupplier) Returns anAuthTokenManager
that manages basicAuthToken
instances. -
Uses of AuthToken in org.neo4j.driver.internal.async
Modifier and TypeMethodDescriptionConnectionContext.overrideAuthToken()
ImmutableConnectionContext.overrideAuthToken()
ModifierConstructorDescriptionLeakLoggingNetworkSession
(ConnectionProvider connectionProvider, RetryLogic retryLogic, org.neo4j.driver.internal.DatabaseName databaseName, AccessMode mode, Set<Bookmark> bookmarks, String impersonatedUser, long fetchSize, Logging logging, BookmarkManager bookmarkManager, org.neo4j.driver.internal.GqlNotificationConfig notificationConfig, AuthToken overrideAuthToken, boolean telemetryDisabled) NetworkSession
(ConnectionProvider connectionProvider, RetryLogic retryLogic, org.neo4j.driver.internal.DatabaseName databaseName, AccessMode mode, Set<Bookmark> bookmarks, String impersonatedUser, long fetchSize, Logging logging, BookmarkManager bookmarkManager, org.neo4j.driver.internal.GqlNotificationConfig notificationConfig, AuthToken overrideAuthToken, boolean telemetryDisabled) -
Uses of AuthToken in org.neo4j.driver.internal.async.pool
Modifier and TypeMethodDescriptionConnectionPoolImpl.acquire
(org.neo4j.driver.internal.BoltServerAddress address, AuthToken overrideAuthToken) CompletionStage<io.netty.channel.Channel>
CompletionStage<io.netty.channel.Channel>
void
AuthContext.initiateAuth
(AuthToken authToken) void
AuthContext.initiateAuth
(AuthToken authToken, boolean managed) void
AuthContext.setValidToken
(AuthToken validToken) -
Uses of AuthToken in org.neo4j.driver.internal.cluster
Modifier and TypeMethodDescriptionRediscovery.lookupClusterComposition
(RoutingTable routingTable, ConnectionPool connectionPool, Set<Bookmark> bookmarks, String impersonatedUser, AuthToken overrideAuthToken) Fetches cluster composition using the provided routing table.RediscoveryImpl.lookupClusterComposition
(RoutingTable routingTable, ConnectionPool connectionPool, Set<Bookmark> bookmarks, String impersonatedUser, AuthToken overrideAuthToken) Given a database and its current routing table, and the global connection pool, use the global cluster composition provider to fetch a new cluster composition, which would be used to update the routing table of the given database and global connection pool. -
Uses of AuthToken in org.neo4j.driver.internal.messaging
Modifier and TypeMethodDescriptionvoid
BoltProtocol.initializeChannel
(String userAgent, org.neo4j.driver.internal.BoltAgent boltAgent, AuthToken authToken, RoutingContext routingContext, io.netty.channel.ChannelPromise channelInitializedPromise, org.neo4j.driver.internal.GqlNotificationConfig GqlNotificationConfig, Clock clock) Initialize channel after it is connected and handshake selected this protocol version. -
Uses of AuthToken in org.neo4j.driver.internal.messaging.v3
Modifier and TypeMethodDescriptionvoid
BoltProtocolV3.initializeChannel
(String userAgent, org.neo4j.driver.internal.BoltAgent boltAgent, AuthToken authToken, RoutingContext routingContext, io.netty.channel.ChannelPromise channelInitializedPromise, org.neo4j.driver.internal.GqlNotificationConfig notificationConfig, Clock clock) -
Uses of AuthToken in org.neo4j.driver.internal.messaging.v51
Modifier and TypeMethodDescriptionvoid
BoltProtocolV51.initializeChannel
(String userAgent, org.neo4j.driver.internal.BoltAgent boltAgent, AuthToken authToken, RoutingContext routingContext, io.netty.channel.ChannelPromise channelInitializedPromise, org.neo4j.driver.internal.GqlNotificationConfig notificationConfig, Clock clock) -
Uses of AuthToken in org.neo4j.driver.internal.messaging.v53
Modifier and TypeMethodDescriptionvoid
BoltProtocolV53.initializeChannel
(String userAgent, org.neo4j.driver.internal.BoltAgent boltAgent, AuthToken authToken, RoutingContext routingContext, io.netty.channel.ChannelPromise channelInitializedPromise, org.neo4j.driver.internal.GqlNotificationConfig notificationConfig, Clock clock) -
Uses of AuthToken in org.neo4j.driver.internal.security
Modifier and TypeClassDescriptionfinal class
A simple common token for authentication schemes that easily convert to an auth token mapModifier and TypeMethodDescriptionInternalAuthTokenAndExpiration.authToken()
Returns the value of theauthToken
record component.Modifier and TypeMethodDescriptionExpirationBasedAuthTokenManager.getToken()
StaticAuthTokenManager.getToken()
ValidatingAuthTokenManager.getToken()
Modifier and TypeMethodDescriptionboolean
ExpirationBasedAuthTokenManager.handleSecurityException
(AuthToken authToken, SecurityException exception) boolean
StaticAuthTokenManager.handleSecurityException
(AuthToken authToken, SecurityException exception) boolean
ValidatingAuthTokenManager.handleSecurityException
(AuthToken authToken, SecurityException exception) ModifierConstructorDescriptionInternalAuthTokenAndExpiration
(AuthToken authToken, long expirationTimestamp) Creates an instance of aInternalAuthTokenAndExpiration
record class.StaticAuthTokenManager
(AuthToken authToken) -
Uses of AuthToken in org.neo4j.driver.internal.spi