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 Details

  • Constructor Details

    • TokenResponse

      public TokenResponse()
  • Method Details

    • accessToken

      public TokenResponse accessToken(String accessToken)
    • getAccessToken

      @Nullable public String getAccessToken()
      An access token.
      Returns:
      accessToken
    • setAccessToken

      public void setAccessToken(String accessToken)
    • deviceSecret

      public TokenResponse deviceSecret(String deviceSecret)
    • getDeviceSecret

      @Nullable public String getDeviceSecret()
      An opaque device secret. This is returned if the `device_sso` scope is granted.
      Returns:
      deviceSecret
    • setDeviceSecret

      public void setDeviceSecret(String deviceSecret)
    • expiresIn

      public TokenResponse expiresIn(Integer expiresIn)
    • getExpiresIn

      @Nullable public Integer getExpiresIn()
      The expiration time of the access token in seconds.
      Returns:
      expiresIn
    • setExpiresIn

      public void setExpiresIn(Integer expiresIn)
    • idToken

      public TokenResponse idToken(String idToken)
    • getIdToken

      @Nullable public String getIdToken()
      An ID token. This is returned if the `openid` scope is granted.
      Returns:
      idToken
    • setIdToken

      public void setIdToken(String idToken)
    • issuedTokenType

      public TokenResponse issuedTokenType(TokenType issuedTokenType)
    • getIssuedTokenType

      @Nullable public TokenType getIssuedTokenType()
      Get issuedTokenType
      Returns:
      issuedTokenType
    • setIssuedTokenType

      public void setIssuedTokenType(TokenType issuedTokenType)
    • refreshToken

      public TokenResponse refreshToken(String refreshToken)
    • getRefreshToken

      @Nullable public String getRefreshToken()
      An opaque refresh token. This is returned if the `offline_access` scope is granted.
      Returns:
      refreshToken
    • setRefreshToken

      public void setRefreshToken(String refreshToken)
    • scope

      public TokenResponse scope(String scope)
    • getScope

      @Nullable public String getScope()
      The scopes contained in the access token.
      Returns:
      scope
    • setScope

      public void setScope(String scope)
    • tokenType

      public TokenResponse tokenType(TokenResponseTokenType tokenType)
    • getTokenType

      @Nullable public TokenResponseTokenType getTokenType()
      Get tokenType
      Returns:
      tokenType
    • setTokenType

      public void setTokenType(TokenResponseTokenType tokenType)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object