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 oftls_client_auth; empty (the default) means that no CA-issued client certificate is accepted, and onlyself_signed_tls_client_authcan 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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMtlsProperties(List<String> trustedAuthorities) Validates the configuration and copies the list. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thetrustedAuthoritiesrecord component.
-
Field Details
-
trustedAuthorities
The field for thetrustedAuthoritiesrecord component.
-
-
Constructor Details
-
MtlsProperties
Validates the configuration and copies the list.- Throws:
IllegalArgumentException- if a path is blank.
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
trustedAuthorities
Returns the value of thetrustedAuthoritiesrecord component.- Returns:
- the value of the
trustedAuthoritiesrecord component
-