Interface AuthTokenAndExpiration

All Known Implementing Classes:
InternalAuthTokenAndExpiration

@Preview(name="AuthToken rotation and session auth support") 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 expiration-based 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