Class OAuth2AuthorizationResponseType
- java.lang.Object
-
- org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationResponseType
-
- All Implemented Interfaces:
java.io.Serializable
public final class OAuth2AuthorizationResponseType extends java.lang.Object implements java.io.Serializable
Theresponse_type
parameter is consumed by the authorization endpoint which is used by the authorization code grant type and implicit grant type. The client sets theresponse_type
parameter with the desired grant type before initiating the authorization request.The
response_type
parameter value may be one of "code" for requesting an authorization code or "token" for requesting an access token (implicit grant).- Since:
- 5.0
- See Also:
- Section 3.1.1 Response Type, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static OAuth2AuthorizationResponseType
CODE
static OAuth2AuthorizationResponseType
TOKEN
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getValue()
Returns the value of the authorization response type.int
hashCode()
-
-
-
Field Detail
-
CODE
public static final OAuth2AuthorizationResponseType CODE
-
TOKEN
public static final OAuth2AuthorizationResponseType TOKEN
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Returns the value of the authorization response type.- Returns:
- the value of the authorization response type
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-