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.SerializableTheresponse_typeparameter is consumed by the authorization endpoint which is used by the authorization code grant type and implicit grant type. The client sets theresponse_typeparameter with the desired grant type before initiating the authorization request.The
response_typeparameter 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 OAuth2AuthorizationResponseTypeCODEstatic OAuth2AuthorizationResponseTypeTOKENDeprecated.
-
Constructor Summary
Constructors Constructor Description OAuth2AuthorizationResponseType(java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetValue()Returns the value of the authorization response type.inthashCode()
-
-
-
Field Detail
-
CODE
public static final OAuth2AuthorizationResponseType CODE
-
TOKEN
@Deprecated public static final OAuth2AuthorizationResponseType TOKEN
Deprecated.It is not recommended to use the implicit flow due to the inherent risks of returning access tokens in an HTTP redirect without any confirmation that it has been received by the client.- See Also:
- OAuth 2.0 Implicit Grant
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-