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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
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
-