Class CertificateValidator.CollectionCertificateValidator

    • Constructor Detail

      • CollectionCertificateValidator

        public CollectionCertificateValidator​(java.util.Collection<org.xipki.security.X509Cert> certs)
      • CollectionCertificateValidator

        public CollectionCertificateValidator​(org.xipki.security.X509Cert cert)
    • Method Detail

      • trustCertificate

        public boolean trustCertificate​(org.xipki.security.X509Cert signerCert,
                                        org.xipki.security.X509Cert[] otherCerts)
        Description copied from interface: CertificateValidator
        Whether the target certificate can be trusted.
        Specified by:
        trustCertificate in interface CertificateValidator
        Parameters:
        signerCert - The certificate to be verified. Must not be null.
        otherCerts - Additional certificate that may be used. Could be null.
        Returns:
        whether the target certificate is trusted.