Interface AuthTokenAndExpiration

All Known Implementing Classes:
InternalAuthTokenAndExpiration

public sealed interface AuthTokenAndExpiration permits InternalAuthTokenAndExpiration
A container used by the expiration based AuthTokenManager implementation provided by the driver, it contains an AuthToken and its UTC expiration timestamp.

This is used by the bearer token implementation of the AuthTokenManager supplied by the AuthTokenManagers.

Since:
5.8
See Also:
  • Method Details

    • authToken

      AuthToken authToken()
      Returns the AuthToken.
      Returns:
      the token
    • expirationTimestamp

      long expirationTimestamp()
      Returns the token's UTC expiration timestamp.
      Returns:
      the token's UTC expiration timestamp