com.tietoenator.trip.jxp.session

## Class TdbTokenPair

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

-     public class TdbTokenPair
      extends java.lang.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

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.util.Date` | `getAccessExpiresAt()` The time at which the access token expires.
    `java.lang.String` | `getAccessToken()` Access token.
    `java.util.Date` | `getRefreshExpiresAt()` The time at which the refresh token expires.
    `java.lang.String` | `getRefreshToken()` Refresh token.

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

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

- - ### Method Detail

    - #### getAccessToken

          public java.lang.String getAccessToken()

      Access token. Use instead of username and password to log in.
      Returns:
        Access token

    - #### getRefreshToken

          public java.lang.String getRefreshToken()

      Refresh token. Use to get a new token pair when the associated access token has expired.
      Returns:
        Refresh token

    - #### getAccessExpiresAt

          public java.util.Date getAccessExpiresAt()

      The time at which the access token expires.
      Returns:
        Access token expiration time

    - #### getRefreshExpiresAt

          public java.util.Date getRefreshExpiresAt()

      The time at which the refresh token expires.
      Returns:
        Refresh token expiration time