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 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