Class X509CertificateCredentialValidator

    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
      • trustEngine

        @Nullable
        private TrustEngine<? super X509Credential> trustEngine
        Optional trust engine to validate certificates against.
      • saveCertificateToCredentialSet

        private boolean saveCertificateToCredentialSet
        Whether to save the certificate in the Java Subject's public credentials.
    • Constructor Detail

      • X509CertificateCredentialValidator

        public X509CertificateCredentialValidator()
        Constructor.
    • Method Detail

      • setSaveCertificateToCredentialSet

        public void setSaveCertificateToCredentialSet​(boolean flag)
        Set whether to save the certificate in the Java Subject's public credentials.

        Defaults to true

        Parameters:
        flag - flag to set
      • populateSubject

        @Nonnull
        protected Subject populateSubject​(@Nonnull
                                          X509Certificate certificate)
        Builds a subject with "standard" content from the validation.
        Parameters:
        certificate - the certificate validated
        Returns:
        the decorated subject