Class PKIXPolicyTreeUtil


  • public class PKIXPolicyTreeUtil
    extends java.lang.Object
    Shared RFC 5280 sec. 6.1.3/6.1.4 valid-policy-tree manipulation, single-sourced from the two cert-path stacks that used to carry duplicate copies (the provider's cert path validator/reviewer and the PKIX revocation checker's reviewer). These are the error-reporting-free mechanics of the policy algorithm - each caller keeps its own driver loop and localized diagnostics and calls in here for the tree operations, which raise a plain CertPathValidatorException the caller re-wraps into its own exception/message type.
    • Constructor Detail

      • PKIXPolicyTreeUtil

        public PKIXPolicyTreeUtil()
    • Method Detail

      • prepareNextCertB1

        public static void prepareNextCertB1​(int i,
                                             java.util.List[] policyNodes,
                                             java.lang.String id_p,
                                             java.util.Map m_idp,
                                             java.security.cert.X509Certificate cert)
                                      throws java.security.cert.CertPathValidatorException
        Throws:
        java.security.cert.CertPathValidatorException
      • prepareNextCertB2

        public static PKIXPolicyNode prepareNextCertB2​(int i,
                                                       java.util.List[] policyNodes,
                                                       java.lang.String id_p,
                                                       PKIXPolicyNode validPolicyTree)
      • processCertD1i

        public static boolean processCertD1i​(int index,
                                             java.util.List[] policyNodes,
                                             ASN1ObjectIdentifier pOid,
                                             java.util.Set pq)
      • processCertD1ii

        public static void processCertD1ii​(int index,
                                           java.util.List[] policyNodes,
                                           ASN1ObjectIdentifier _poid,
                                           java.util.Set _pq)
      • getQualifierSet

        public static java.util.Set getQualifierSet​(ASN1Sequence qualifiers)
                                             throws java.security.cert.CertPathValidatorException
        Throws:
        java.security.cert.CertPathValidatorException