java.lang.Object
org.neo4j.driver.internal.security.ValidatingAuthTokenManager
- All Implemented Interfaces:
AuthTokenManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetToken()
Returns aCompletionStage
for a validAuthToken
.void
Handles an error notification emitted by the server if the token is expired.
-
Constructor Details
-
ValidatingAuthTokenManager
-
-
Method Details
-
getToken
Description copied from interface:AuthTokenManager
Returns aCompletionStage
for a validAuthToken
.Driver invokes this method often to check if token has changed.
Failures will surface via the driver API, like
Session.beginTransaction()
method and others.- Specified by:
getToken
in interfaceAuthTokenManager
- Returns:
- a stage for a valid token, must not be
null
or complete withnull
- See Also:
-
onExpired
Description copied from interface:AuthTokenManager
Handles an error notification emitted by the server if the token is expired.This will be called when driver emits the
TokenExpiredRetryableException
.- Specified by:
onExpired
in interfaceAuthTokenManager
- Parameters:
authToken
- the expired token
-