java.lang.Object
java.lang.Enum<AuthMethod>
com.irurueta.authserver.serviceclient.infrastructure.resourceserver.AuthMethod
All Implemented Interfaces:
Serializable, Comparable<AuthMethod>, Constable

public enum AuthMethod extends Enum<AuthMethod>
How the service client authenticates at the token endpoint (service-client.auth.method).
  • Enum Constant Details

    • CLIENT_SECRET_BASIC

      public static final AuthMethod CLIENT_SECRET_BASIC
      A shared secret in an HTTP Basic header.
    • PRIVATE_KEY_JWT

      public static final AuthMethod PRIVATE_KEY_JWT
      An assertion signed with the client's private key (RFC 7523).
    • TLS_CLIENT_AUTH

      public static final AuthMethod TLS_CLIENT_AUTH
      Mutual TLS with a certificate issued by a certification authority the server trusts (RFC 8705).
    • SELF_SIGNED_TLS_CLIENT_AUTH

      public static final AuthMethod 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 clientAuthenticationMethod
      The method as Spring Security names it.
  • Constructor Details

    • AuthMethod

      private AuthMethod()
  • Method Details

    • values

      public static AuthMethod[] 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

      public static AuthMethod valueOf(String name)
      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 name
      NullPointerException - 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.