Package com.okta.sdk.resource.model
Class OAuth2Token
java.lang.Object
com.okta.sdk.resource.model.OAuth2Token
- 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 OAuth2Token
extends Object
implements Serializable
OAuth2Token
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddscopesItem
(String scopesItem) boolean
Client IDTimestamp when the object was createdEmbedded resources related to the object if the `expand` query parameter is specifiedExpiration time of the OAuth 2.0 TokengetId()
ID of the Token objectThe complete URL of the authorization server that issued the TokenTimestamp when the object was last updatedgetLinks()
Get linksName of scopes attached to the TokenGet statusGet userIdint
hashCode()
void
void
void
void
setStatus
(GrantOrTokenStatus status) void
status
(GrantOrTokenStatus status) toString()
-
Field Details
-
JSON_PROPERTY_CLIENT_ID
- See Also:
-
JSON_PROPERTY_CREATED
- See Also:
-
JSON_PROPERTY_EXPIRES_AT
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_ISSUER
- See Also:
-
JSON_PROPERTY_LAST_UPDATED
- See Also:
-
JSON_PROPERTY_SCOPES
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_USER_ID
- See Also:
-
JSON_PROPERTY_EMBEDDED
- See Also:
-
JSON_PROPERTY_LINKS
- See Also:
-
-
Constructor Details
-
OAuth2Token
public OAuth2Token()
-
-
Method Details
-
getClientId
Client ID- Returns:
- clientId
-
getCreated
Timestamp when the object was created- Returns:
- created
-
getExpiresAt
Expiration time of the OAuth 2.0 Token- Returns:
- expiresAt
-
getId
ID of the Token object- Returns:
- id
-
issuer
-
getIssuer
The complete URL of the authorization server that issued the Token- Returns:
- issuer
-
setIssuer
-
getLastUpdated
Timestamp when the object was last updated- Returns:
- lastUpdated
-
scopes
-
addscopesItem
-
getScopes
Name of scopes attached to the Token- Returns:
- scopes
-
setScopes
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
userId
-
getUserId
Get userId- Returns:
- userId
-
setUserId
-
getEmbedded
Embedded resources related to the object if the `expand` query parameter is specified- Returns:
- embedded
-
links
-
getLinks
Get links- Returns:
- links
-
setLinks
-
equals
-
hashCode
public int hashCode() -
toString
-