Class AccessToken

    • Constructor Detail

      • AccessToken

        public AccessToken​(String tokenValue,
                           Date expirationTime)
        Parameters:
        tokenValue - String representation of the access token.
        expirationTime - Time when access token will expire.
    • Method Detail

      • getScopes

        public List<String> getScopes()
        Scopes from the access token response. Not all credentials provide scopes in response and as per https://datatracker.ietf.org/doc/html/rfc6749#section-5.1 it is optional in the response.
        Returns:
        List of scopes
      • getTokenValue

        public String getTokenValue()
        String representation of the access token.
        Returns:
        The raw access token string value.
      • getExpirationTime

        public Date getExpirationTime()
        Time when access token will expire.
        Returns:
        The expiration time as a Date.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object