Class AuthorizationGrantType

  • All Implemented Interfaces:
    java.io.Serializable

    public final class AuthorizationGrantType
    extends java.lang.Object
    implements java.io.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, implicit, resource owner password credentials, and client credentials. It also provides an extensibility mechanism for defining additional grant types.

    Since:
    5.0
    See Also:
    Section 1.3 Authorization Grant, Serialized Form
    • Constructor Detail

      • AuthorizationGrantType

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

      • getValue

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object