java.lang.Object
org.springframework.security.oauth2.server.authorization.OAuth2TokenType
All Implemented Interfaces:
Serializable

public final class OAuth2TokenType extends Object implements Serializable
Standard token types defined in the OAuth Token Type Hints Registry.
Since:
0.0.1
See Also:
  • Field Details

    • ACCESS_TOKEN

      public static final OAuth2TokenType ACCESS_TOKEN
      access_token token type.
    • REFRESH_TOKEN

      public static final OAuth2TokenType REFRESH_TOKEN
      refresh_token token type.
  • Constructor Details

    • OAuth2TokenType

      public OAuth2TokenType(String value)
      Constructs an OAuth2TokenType using the provided value.
      Parameters:
      value - the value of the token type
  • Method Details

    • getValue

      public String getValue()
      Returns the value of the token type.
      Returns:
      the value of the token type
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object