Enum Class AuthMethod
java.lang.Object
java.lang.Enum<AuthMethod>
com.irurueta.authserver.serviceclient.infrastructure.resourceserver.AuthMethod
- All Implemented Interfaces:
Serializable,Comparable<AuthMethod>,Constable
How the service client authenticates at the token endpoint (
service-client.auth.method).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA shared secret in an HTTP Basic header.An assertion signed with the client's private key (RFC 7523).Mutual TLS with a self-signed certificate registered with the server (RFC 8705).Mutual TLS with a certificate issued by a certification authority the server trusts (RFC 8705). -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.security.oauth2.core.ClientAuthenticationMethodThe method as Spring Security names it. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTells whether the method is authenticated by the client certificate of the TLS connection.static AuthMethodReturns the enum constant of this class with the specified name.static AuthMethod[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLIENT_SECRET_BASIC
A shared secret in an HTTP Basic header. -
PRIVATE_KEY_JWT
An assertion signed with the client's private key (RFC 7523). -
TLS_CLIENT_AUTH
Mutual TLS with a certificate issued by a certification authority the server trusts (RFC 8705). -
SELF_SIGNED_TLS_CLIENT_AUTH
Mutual TLS with a self-signed certificate registered with the server (RFC 8705).
-
-
Field Details
-
clientAuthenticationMethod
private final org.springframework.security.oauth2.core.ClientAuthenticationMethod clientAuthenticationMethodThe method as Spring Security names it.
-
-
Constructor Details
-
AuthMethod
private AuthMethod()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isMutualTls
public boolean isMutualTls()Tells whether the method is authenticated by the client certificate of the TLS connection.- Returns:
- true for the two mutual TLS methods.
-