Class AuthenticationMethod
- java.lang.Object
-
- org.springframework.security.oauth2.core.AuthenticationMethod
-
- All Implemented Interfaces:
java.io.Serializable
public final class AuthenticationMethod extends java.lang.Object implements java.io.SerializableThe authentication method used when sending bearer access tokens in resource requests to resource servers.- Since:
- 5.1
- See Also:
- Section 2 Authenticated Requests, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static AuthenticationMethodFORMstatic AuthenticationMethodHEADERstatic AuthenticationMethodQUERY
-
Constructor Summary
Constructors Constructor Description AuthenticationMethod(java.lang.String value)Constructs anAuthenticationMethodusing the provided 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 authentication method type.inthashCode()
-
-
-
Field Detail
-
HEADER
public static final AuthenticationMethod HEADER
-
FORM
public static final AuthenticationMethod FORM
-
QUERY
public static final AuthenticationMethod QUERY
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Returns the value of the authentication method type.- Returns:
- the value of the authentication method type
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-