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.Serializable
The 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 AuthenticationMethod
FORM
static AuthenticationMethod
HEADER
static AuthenticationMethod
QUERY
-
Constructor Summary
Constructors Constructor Description AuthenticationMethod(java.lang.String value)
Constructs anAuthenticationMethod
using the provided value.
-
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 authentication method type.int
hashCode()
-
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-