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 ClientAuthenticationMethodstatic final ClientAuthenticationMethodstatic final ClientAuthenticationMethodstatic final ClientAuthenticationMethodstatic final ClientAuthenticationMethodstatic final ClientAuthenticationMethodstatic final ClientAuthenticationMethod -
Constructor Summary
ConstructorsConstructorDescriptionClientAuthenticationMethod(String value) Constructs aClientAuthenticationMethodusing the provided value. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetValue()Returns the value of the client authentication method.inthashCode()toString()static ClientAuthenticationMethodA factory to construct aClientAuthenticationMethodbased 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 aClientAuthenticationMethodusing 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 aClientAuthenticationMethodbased 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
-