Package com.tietoenator.trip.jxp.session

# Class TdbTokenPair

java.lang.Object
com.tietoenator.trip.jxp.session.TdbTokenPair

public class TdbTokenPair extends Object
Holds an access/refresh token pair and their expiration times as returned from TRIPsystem as a response to an access token creation request or a token refresh request.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Date`
  `getAccessExpiresAt()`
  The time at which the access token expires.
  `String`
  `getAccessToken()`
  Access token.
  `Date`
  `getRefreshExpiresAt()`
  The time at which the refresh token expires.
  `String`
  `getRefreshToken()`
  Refresh token.

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### getAccessToken

    public String getAccessToken()
    Access token. Use instead of username and password to log in.
    Returns:
      Access token

  - ### getRefreshToken

    public String getRefreshToken()
    Refresh token. Use to get a new token pair when the associated access token has expired.
    Returns:
      Refresh token

  - ### getAccessExpiresAt

    public Date getAccessExpiresAt()
    The time at which the access token expires.
    Returns:
      Access token expiration time

  - ### getRefreshExpiresAt

    public Date getRefreshExpiresAt()
    The time at which the refresh token expires.
    Returns:
      Refresh token expiration time