Class ClientAuthenticationMethod
java.lang.Object
org.springframework.security.oauth2.core.ClientAuthenticationMethod
- All Implemented Interfaces:
Serializable
The authentication method used when authenticating the client with the authorization
server.
- Since:
- 5.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ClientAuthenticationMethod
static final ClientAuthenticationMethod
static final ClientAuthenticationMethod
static final ClientAuthenticationMethod
static final ClientAuthenticationMethod
static final ClientAuthenticationMethod
static final ClientAuthenticationMethod
-
Constructor Summary
ConstructorsConstructorDescriptionClientAuthenticationMethod
(String value) Constructs aClientAuthenticationMethod
using the provided value. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getValue()
Returns the value of the client authentication method.int
hashCode()
toString()
static ClientAuthenticationMethod
A factory to construct aClientAuthenticationMethod
based on a string, returning any constant value that matches.
-
Field Details
-
CLIENT_SECRET_BASIC
- Since:
- 5.5
-
CLIENT_SECRET_POST
- Since:
- 5.5
-
CLIENT_SECRET_JWT
- Since:
- 5.5
-
PRIVATE_KEY_JWT
- Since:
- 5.5
-
NONE
- Since:
- 5.2
-
TLS_CLIENT_AUTH
- Since:
- 6.3
-
SELF_SIGNED_TLS_CLIENT_AUTH
- Since:
- 6.3
-
-
Constructor Details
-
ClientAuthenticationMethod
Constructs aClientAuthenticationMethod
using the provided value.- Parameters:
value
- the value of the client authentication method
-
-
Method Details
-
getValue
Returns the value of the client authentication method.- Returns:
- the value of the client authentication method
-
valueOf
A factory to construct aClientAuthenticationMethod
based on a string, returning any constant value that matches.- Parameters:
method
- the client authentication method- Returns:
- a
ClientAuthenticationMethod
; specifically the corresponding constant, if any - Since:
- 6.5
-
equals
-
hashCode
public int hashCode() -
toString
-