Package org.neo4j.bolt.connection.pooled
Interface AuthTokenManager
public interface AuthTokenManager
A manager of
AuthToken instances used by PooledBoltConnectionSource during establishing a new
BoltConnection.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptiongetToken()Returns aCompletionStagefor a validAuthToken.handleBoltFailureException(AuthToken authToken, BoltFailureException exception) HandlesBoltFailureExceptionthat is created based on the server's error response together with the usedAuthToken.
-
Method Details
-
getToken
CompletionStage<AuthToken> getToken()Returns aCompletionStagefor a validAuthToken. -
handleBoltFailureException
BoltFailureException handleBoltFailureException(AuthToken authToken, BoltFailureException exception) HandlesBoltFailureExceptionthat is created based on the server's error response together with the usedAuthToken.- Parameters:
authToken- theAuthTokenusedexception- theBoltFailureExceptionrepresenting an error response- Returns:
- the exception that the
PooledBoltConnectionSourceMUST use
-