Record Class MtlsProperties

java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.api.web.clientauth.MtlsProperties
Record Components:
trustedAuthorities - paths of the PEM files whose certificates are the trust anchors of tls_client_auth; empty (the default) means that no CA-issued client certificate is accepted, and only self_signed_tls_client_auth can succeed.

@ConfigurationProperties(prefix="authserver.mtls") public record MtlsProperties(List<String> trustedAuthorities) extends Record
Configuration of the mutual-TLS client authentication (authserver.mtls.*, RFC 8705).
  • Field Details

  • Constructor Details

    • MtlsProperties

      public MtlsProperties(@DefaultValue List<String> trustedAuthorities)
      Validates the configuration and copies the list.
      Throws:
      IllegalArgumentException - if a path is blank.
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • trustedAuthorities

      public List<String> trustedAuthorities()
      Returns the value of the trustedAuthorities record component.
      Returns:
      the value of the trustedAuthorities record component