Class AuthorizationGrantType

java.lang.Object
org.springframework.security.oauth2.core.AuthorizationGrantType
All Implemented Interfaces:
Serializable

public final class AuthorizationGrantType extends Object implements Serializable
An authorization grant is a credential representing the resource owner's authorization (to access it's protected resources) to the client and used by the client to obtain an access token.

The OAuth 2.0 Authorization Framework defines four standard grant types: authorization code, resource owner password credentials, and client credentials. It also provides an extensibility mechanism for defining additional grant types.

Since:
5.0
See Also:
  • Field Details

  • Constructor Details

    • AuthorizationGrantType

      public AuthorizationGrantType(String value)
      Constructs an AuthorizationGrantType using the provided value.
      Parameters:
      value - the value of the authorization grant type
  • Method Details

    • getValue

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object