Package com.tietoenator.trip.jxp.session
Class TdbTokenPair
java.lang.Object
com.tietoenator.trip.jxp.session.TdbTokenPair
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 TypeMethodDescriptionThe time at which the access token expires.Access token.The time at which the refresh token expires.Refresh token.
-
Method Details
-
getAccessToken
Access token. Use instead of username and password to log in.- Returns:
- Access token
-
getRefreshToken
Refresh token. Use to get a new token pair when the associated access token has expired.- Returns:
- Refresh token
-
getAccessExpiresAt
The time at which the access token expires.- Returns:
- Access token expiration time
-
getRefreshExpiresAt
The time at which the refresh token expires.- Returns:
- Refresh token expiration time
-