public interface OAuthTokens
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccessToken()
Returns the value of the access token
|
java.lang.String |
getIdToken()
Returns the value of the id token
|
JWT |
getJWToken()
Returns the parsed JWT from the ID user token.
|
java.lang.String |
getOAuthId() |
java.lang.String |
getRefreshToken()
Returns the value of the refresh token
|
long |
getTokenExpiry()
Returns the token expiry
|
java.lang.String |
getTokenType()
Returns the value the token type e.g Bearer
|
void |
setAccessToken(java.lang.String accessToken)
Sets the value of the access token
|
void |
setIdToken(java.lang.String idToken)
Sets the value of the id token
|
void |
setRefreshToken(java.lang.String refreshToken)
Sets the value of the refresh token
|
void |
setTokenExpiry(long tokenExpiry)
Sets the token expiry
|
void |
setTokenType(java.lang.String tokenType)
Sets the value of the token type e.g Bearer
|
void setAccessToken(java.lang.String accessToken)
accessToken
- valuejava.lang.String getAccessToken()
void setRefreshToken(java.lang.String refreshToken)
refreshToken
- valuejava.lang.String getRefreshToken()
void setTokenExpiry(long tokenExpiry)
tokenExpiry
- valuelong getTokenExpiry()
void setIdToken(java.lang.String idToken)
idToken
- valuejava.lang.String getIdToken()
void setTokenType(java.lang.String tokenType)
tokenType
- valuejava.lang.String getTokenType()
JWT getJWToken() throws com.ebasetech.ufs.runtime.security.jwt.InvalidJWTokenException
com.ebasetech.ufs.runtime.security.jwt.InvalidJWTokenException
- if there is an error parsing the token or the id is not setgetIdToken()
java.lang.String getOAuthId()