Class CertPathValidatorUtilitiesCanl

java.lang.Object
eu.emi.security.authn.x509.helpers.pkipath.bc.CertPathValidatorUtilities
eu.emi.security.authn.x509.helpers.pkipath.bc.CertPathValidatorUtilitiesCanl

public class CertPathValidatorUtilitiesCanl extends CertPathValidatorUtilities
Exposes otherwise hidden methods from CertPathValidatorUtilitiesCanl plus in some cases fixes bugs plus produces errors in the desired format.
  • Constructor Details

    • CertPathValidatorUtilitiesCanl

      public CertPathValidatorUtilitiesCanl()
  • Method Details

    • findTrustAnchorPublic

      public static TrustAnchor findTrustAnchorPublic(X509Certificate cert, Set<?> trustAnchors, String sigProvider) throws org.bouncycastle.jce.provider.AnnotatedException
      Throws:
      org.bouncycastle.jce.provider.AnnotatedException
    • findIssuerCerts

      public static Collection<?> findIssuerCerts(X509Certificate cert, org.bouncycastle.jcajce.PKIXExtendedBuilderParameters pkixParams) throws org.bouncycastle.jce.provider.AnnotatedException
      Throws:
      org.bouncycastle.jce.provider.AnnotatedException
    • getCompleteCRLs2

      protected static Set<?> getCompleteCRLs2(org.bouncycastle.asn1.x509.DistributionPoint dp, X509Certificate cert, Date currentDate, org.bouncycastle.jcajce.PKIXExtendedParameters paramsPKIX) throws SimpleValidationErrorException
      Throws:
      SimpleValidationErrorException
    • getCompleteCRLs

      protected static Set getCompleteCRLs(org.bouncycastle.asn1.x509.DistributionPoint dp, Object cert, Date currentDate, org.bouncycastle.jcajce.PKIXExtendedParameters paramsPKIX) throws org.bouncycastle.jce.provider.AnnotatedException
      Parameters:
      dp -
      cert -
      currentDate -
      paramsPKIX -
      Returns:
      A Set of X509CRLs.
      Throws:
      org.bouncycastle.jce.provider.AnnotatedException
    • getDeltaCRLs2

      protected static Set<X509CRL> getDeltaCRLs2(Date currentDate, org.bouncycastle.jcajce.PKIXExtendedParameters paramsPKIX, X509CRL completeCRL) throws SimpleValidationErrorException
      Fetches delta CRLs according to RFC 3280 section 5.2.4.
      Parameters:
      currentDate - The date for which the delta CRLs must be valid.
      paramsPKIX - The extended PKIX parameters.
      completeCRL - The complete CRL the delta CRL is for.
      Returns:
      A Set of X509CRLs with delta CRLs.
      Throws:
      SimpleValidationErrorException - if an exception occurs while picking the delta CRLs.
    • getExtensionValue

      protected static org.bouncycastle.asn1.ASN1Primitive getExtensionValue(X509Extension ext, String oid) throws org.bouncycastle.jce.provider.AnnotatedException
      Throws:
      org.bouncycastle.jce.provider.AnnotatedException
    • getAdditionalStoresFromCRLDistributionPoint

      protected static List<org.bouncycastle.jcajce.PKIXCRLStore> getAdditionalStoresFromCRLDistributionPoint(org.bouncycastle.asn1.x509.CRLDistPoint crldp, org.bouncycastle.jcajce.PKIXExtendedBuilderParameters pkixParams) throws org.bouncycastle.jce.provider.AnnotatedException
      Throws:
      org.bouncycastle.jce.provider.AnnotatedException
    • getSerialNumber

      public static BigInteger getSerialNumber(Object cert)