Class ClientCredentialsResponse

java.lang.Object
org.entur.jwt.client.ClientCredentialsResponse

public class ClientCredentialsResponse extends Object
Class that contains the Tokens obtained after a call to the authorization server.
  • Constructor Details

    • ClientCredentialsResponse

      public ClientCredentialsResponse()
  • Method Details

    • getAccessToken

      public String getAccessToken()
      Getter for the Auth0's access token.
      Returns:
      the access token or null if missing.
    • getRefreshToken

      public String getRefreshToken()
      Getter for the Auth0's refresh token.
      Returns:
      the refresh token or null if missing.
    • getTokenType

      public String getTokenType()
      Getter for the token type.
      Returns:
      the token type or null if missing.
    • getExpiresIn

      public Long getExpiresIn()
      Getter for the duration of this token in seconds since it was issued.
      Returns:
      the number of seconds in which this token will expire, since the time it was issued.
    • getRefreshExpiresIn

      public Long getRefreshExpiresIn()