Package com.okta.sdk.resource.model
Class TokenResponse
java.lang.Object
com.okta.sdk.resource.model.TokenResponse
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-09-23T16:19:57.008753975Z[Etc/UTC]",
comments="Generator version: 7.8.0")
public class TokenResponse
extends Object
implements Serializable
TokenResponse
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccessToken
(String accessToken) deviceSecret
(String deviceSecret) boolean
An access token.An opaque device secret.The expiration time of the access token in seconds.An ID token.Get issuedTokenTypeAn opaque refresh token.getScope()
The scopes contained in the access token.Get tokenTypeint
hashCode()
issuedTokenType
(TokenType issuedTokenType) refreshToken
(String refreshToken) void
setAccessToken
(String accessToken) void
setDeviceSecret
(String deviceSecret) void
setExpiresIn
(Integer expiresIn) void
setIdToken
(String idToken) void
setIssuedTokenType
(TokenType issuedTokenType) void
setRefreshToken
(String refreshToken) void
void
setTokenType
(TokenResponseTokenType tokenType) tokenType
(TokenResponseTokenType tokenType) toString()
-
Field Details
-
JSON_PROPERTY_ACCESS_TOKEN
- See Also:
-
JSON_PROPERTY_DEVICE_SECRET
- See Also:
-
JSON_PROPERTY_EXPIRES_IN
- See Also:
-
JSON_PROPERTY_ID_TOKEN
- See Also:
-
JSON_PROPERTY_ISSUED_TOKEN_TYPE
- See Also:
-
JSON_PROPERTY_REFRESH_TOKEN
- See Also:
-
JSON_PROPERTY_SCOPE
- See Also:
-
JSON_PROPERTY_TOKEN_TYPE
- See Also:
-
-
Constructor Details
-
TokenResponse
public TokenResponse()
-
-
Method Details
-
accessToken
-
getAccessToken
An access token.- Returns:
- accessToken
-
setAccessToken
-
deviceSecret
-
getDeviceSecret
An opaque device secret. This is returned if the `device_sso` scope is granted.- Returns:
- deviceSecret
-
setDeviceSecret
-
expiresIn
-
getExpiresIn
The expiration time of the access token in seconds.- Returns:
- expiresIn
-
setExpiresIn
-
idToken
-
getIdToken
An ID token. This is returned if the `openid` scope is granted.- Returns:
- idToken
-
setIdToken
-
issuedTokenType
-
getIssuedTokenType
Get issuedTokenType- Returns:
- issuedTokenType
-
setIssuedTokenType
-
refreshToken
-
getRefreshToken
An opaque refresh token. This is returned if the `offline_access` scope is granted.- Returns:
- refreshToken
-
setRefreshToken
-
scope
-
getScope
The scopes contained in the access token.- Returns:
- scope
-
setScope
-
tokenType
-
getTokenType
Get tokenType- Returns:
- tokenType
-
setTokenType
-
equals
-
hashCode
public int hashCode() -
toString
-