Class AnyClientCertificateTrustManager

java.lang.Object
com.irurueta.authserver.authorization.api.web.x509.AnyClientCertificateTrustManager
All Implemented Interfaces:
TrustManager, X509TrustManager

public class AnyClientCertificateTrustManager extends Object implements X509TrustManager
The trust manager of the dedicated TLS port: it accepts any client certificate and advertises no certificate authority. The port requests a certificate without validating it against an authority (optionalNoCA); what identifies the client is the SHA-256 fingerprint of the certificate, which has to be bound to an account, and what the application checks is that the certificate is within its validity (CertificatePrincipalExtractor). The empty list of accepted issuers matters: with the default trust manager the server lists the authorities of the JVM's default trust store, and a client presents only a certificate issued by a listed authority. Tomcat creates the class by name, so it is public with a public constructor and no state.
  • Field Details

    • NO_ISSUERS

      private static final X509Certificate[] NO_ISSUERS
      No authority is advertised, so the client may present any certificate it holds.
  • Constructor Details

    • AnyClientCertificateTrustManager

      public AnyClientCertificateTrustManager()
  • Method Details