java.lang.Object
io.camunda.identity.sdk.authentication.Tokens
All Implemented Interfaces:
Serializable

public class Tokens extends Object implements Serializable
Authorization tokens data class. An object of this class can be serialized and stored in a session.
See Also:
  • Constructor Details

    • Tokens

      public Tokens(String accessToken, String refreshToken, long expiresIn, String scope, String tokenType)
      Instantiates a new Tokens object. This method is internal and must not be used outside of the SDK.
      Parameters:
      accessToken - the access token
      refreshToken - the refresh token
      expiresIn - the expires in
      scope - the scope
      tokenType - the token type
  • Method Details

    • getAccessToken

      public String getAccessToken()
      Gets access token.
      Returns:
      the access token
    • getRefreshToken

      public String getRefreshToken()
      Gets refresh token.
      Returns:
      the refresh token
    • getExpiresIn

      public long getExpiresIn()
      Gets expires in.
      Returns:
      the expires in
    • getScope

      public String getScope()
      Gets scope.
      Returns:
      the scope
    • getTokenType

      public String getTokenType()
      Gets token type.
      Returns:
      the token type