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 ClientAuthenticationMethodThe client_secret_basic authentication method.static final ClientAuthenticationMethodThe client_secret_jwt authentication method.static final ClientAuthenticationMethodThe client_secret_post authentication method.static final ClientAuthenticationMethodThe none authentication method.static final ClientAuthenticationMethodThe private_key_jwt authentication method.static final ClientAuthenticationMethodThe self_signed_tls_client_auth authentication method.static final ClientAuthenticationMethodThe tls_client_auth authentication method. -
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
The client_secret_basic authentication method.- Since:
- 5.5
-
CLIENT_SECRET_POST
The client_secret_post authentication method.- Since:
- 5.5
-
CLIENT_SECRET_JWT
The client_secret_jwt authentication method.- Since:
- 5.5
-
PRIVATE_KEY_JWT
The private_key_jwt authentication method.- Since:
- 5.5
-
NONE
The none authentication method.- Since:
- 5.2
-
TLS_CLIENT_AUTH
The tls_client_auth authentication method.- Since:
- 6.3
-
SELF_SIGNED_TLS_CLIENT_AUTH
The self_signed_tls_client_auth authentication method.- 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
-