Class PKIXPolicyTreeUtil
java.lang.Object
org.bouncycastle.jcajce.PKIXPolicyTreeUtil
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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SetgetQualifierSet(ASN1Sequence qualifiers) static voidprepareNextCertB1(int i, List[] policyNodes, String id_p, Map m_idp, X509Certificate cert) static PKIXPolicyNodeprepareNextCertB2(int i, List[] policyNodes, String id_p, PKIXPolicyNode validPolicyTree) static booleanprocessCertD1i(int index, List[] policyNodes, ASN1ObjectIdentifier pOid, Set pq) static voidprocessCertD1ii(int index, List[] policyNodes, ASN1ObjectIdentifier _poid, Set _pq) static PKIXPolicyNoderemovePolicyNode(PKIXPolicyNode validPolicyTree, List[] policyNodes, PKIXPolicyNode _node)
-
Field Details
-
ANY_POLICY
- See Also:
-
-
Constructor Details
-
PKIXPolicyTreeUtil
public PKIXPolicyTreeUtil()
-
-
Method Details
-
removePolicyNode
public static PKIXPolicyNode removePolicyNode(PKIXPolicyNode validPolicyTree, List[] policyNodes, PKIXPolicyNode _node) -
prepareNextCertB1
public static void prepareNextCertB1(int i, List[] policyNodes, String id_p, Map m_idp, X509Certificate cert) throws CertPathValidatorException - Throws:
CertPathValidatorException
-
prepareNextCertB2
public static PKIXPolicyNode prepareNextCertB2(int i, List[] policyNodes, String id_p, PKIXPolicyNode validPolicyTree) -
processCertD1i
public static boolean processCertD1i(int index, List[] policyNodes, ASN1ObjectIdentifier pOid, Set pq) -
processCertD1ii
public static void processCertD1ii(int index, List[] policyNodes, ASN1ObjectIdentifier _poid, Set _pq) -
getQualifierSet
- Throws:
CertPathValidatorException
-