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-23T08:35:59.300824-05:00[America/Chicago]",
           comments="Generator version: 7.8.0")
public class TokenResponse
extends Object
implements Serializable
TokenResponse
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaccessToken(String accessToken) deviceSecret(String deviceSecret) booleanAn 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 tokenTypeinthashCode()issuedTokenType(TokenType issuedTokenType) refreshToken(String refreshToken) voidsetAccessToken(String accessToken) voidsetDeviceSecret(String deviceSecret) voidsetExpiresIn(Integer expiresIn) voidsetIdToken(String idToken) voidsetIssuedTokenType(TokenType issuedTokenType) voidsetRefreshToken(String refreshToken) voidvoidsetTokenType(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- 
TokenResponsepublic TokenResponse()
 
- 
- 
Method Details- 
accessToken
- 
getAccessTokenAn access token.- Returns:
- accessToken
 
- 
setAccessToken
- 
deviceSecret
- 
getDeviceSecretAn opaque device secret. This is returned if the `device_sso` scope is granted.- Returns:
- deviceSecret
 
- 
setDeviceSecret
- 
expiresIn
- 
getExpiresInThe expiration time of the access token in seconds.- Returns:
- expiresIn
 
- 
setExpiresIn
- 
idToken
- 
getIdTokenAn ID token. This is returned if the `openid` scope is granted.- Returns:
- idToken
 
- 
setIdToken
- 
issuedTokenType
- 
getIssuedTokenTypeGet issuedTokenType- Returns:
- issuedTokenType
 
- 
setIssuedTokenType
- 
refreshToken
- 
getRefreshTokenAn opaque refresh token. This is returned if the `offline_access` scope is granted.- Returns:
- refreshToken
 
- 
setRefreshToken
- 
scope
- 
getScopeThe scopes contained in the access token.- Returns:
- scope
 
- 
setScope
- 
tokenType
- 
getTokenTypeGet tokenType- Returns:
- tokenType
 
- 
setTokenType
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-