Class RFC3280CertPathUtilitiesCanl


  • public class RFC3280CertPathUtilitiesCanl
    extends RFC3280CertPathUtilities
    This class exposes the BC's JCA implementation of the RFC3280CertPathUtilities. It was done to: fix its bugs (only one or two, should be OK in BC 1.47) and to have errors consumable by the rest of this library (most of the code).
    • Constructor Detail

      • RFC3280CertPathUtilitiesCanl

        public RFC3280CertPathUtilitiesCanl()
    • Method Detail

      • checkCRLs2

        public static void checkCRLs2​(ExtPKIXParameters2 paramsPKIX,
                                      java.security.cert.X509Certificate cert,
                                      java.util.Date validDate,
                                      java.security.cert.X509Certificate sign,
                                      java.security.PublicKey workingPublicKey,
                                      java.util.List<?> certPathCerts,
                                      org.bouncycastle.jcajce.util.JcaJceHelper jcaHelper)
                               throws SimpleValidationErrorException
        Checks a certificate if it is revoked.
        Parameters:
        paramsPKIX - PKIX parameters.
        cert - Certificate to check if it is revoked.
        validDate - The date when the certificate revocation status should be checked.
        sign - The issuer certificate of the certificate cert.
        workingPublicKey - The public key of the issuer certificate sign.
        certPathCerts - The certificates of the certification path.
        jcaHelper - JcaJce helper
        Throws:
        SimpleValidationErrorException - if the certificate is revoked or the status cannot be checked or some error occurs.
      • checkCRL

        private static void checkCRL​(org.bouncycastle.asn1.x509.DistributionPoint dp,
                                     org.bouncycastle.jcajce.PKIXExtendedParameters paramsPKIX,
                                     java.security.cert.X509Certificate cert,
                                     java.util.Date validDate,
                                     java.security.cert.X509Certificate defaultCRLSignCert,
                                     java.security.PublicKey defaultCRLSignKey,
                                     CertStatus certStatus,
                                     ReasonsMask reasonMask,
                                     java.util.List<?> certPathCerts,
                                     org.bouncycastle.jcajce.util.JcaJceHelper jcaHelper)
                              throws SimpleValidationErrorException
        Checks a distribution point for revocation information for the certificate cert.
        Parameters:
        dp - The distribution point to consider.
        paramsPKIX - PKIX parameters.
        cert - Certificate to check if it is revoked.
        validDate - The date when the certificate revocation status should be checked.
        defaultCRLSignCert - The issuer certificate of the certificate cert.
        defaultCRLSignKey - The public key of the issuer certificate defaultCRLSignCert.
        certStatus - The current certificate revocation status.
        reasonMask - The reasons mask which is already checked.
        certPathCerts - The certificates of the certification path.
        Throws:
        org.bouncycastle.jce.provider.AnnotatedException - if the certificate is revoked or the status cannot be checked or some error occurs.
        SimpleValidationErrorException
      • processCRLF2

        private static java.util.Set<?> processCRLF2​(java.security.cert.X509CRL crl,
                                                     java.lang.Object cert,
                                                     java.security.cert.X509Certificate defaultCRLSignCert,
                                                     java.security.PublicKey defaultCRLSignKey,
                                                     org.bouncycastle.jcajce.PKIXExtendedParameters paramsPKIX,
                                                     java.util.List<?> certPathCerts,
                                                     org.bouncycastle.jcajce.util.JcaJceHelper helper)
                                              throws SimpleValidationErrorException
        Throws:
        SimpleValidationErrorException