org.bouncycastle.jcajce
Class PKIXPolicyTreeUtil
java.lang.Object
org.bouncycastle.jcajce.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.
|
Method Summary |
static java.util.Set |
getQualifierSet(ASN1Sequence qualifiers)
|
static void |
prepareNextCertB1(int i,
java.util.List[] policyNodes,
java.lang.String id_p,
java.util.Map m_idp,
java.security.cert.X509Certificate cert)
|
static PKIXPolicyNode |
prepareNextCertB2(int i,
java.util.List[] policyNodes,
java.lang.String id_p,
PKIXPolicyNode validPolicyTree)
|
static boolean |
processCertD1i(int index,
java.util.List[] policyNodes,
ASN1ObjectIdentifier pOid,
java.util.Set pq)
|
static void |
processCertD1ii(int index,
java.util.List[] policyNodes,
ASN1ObjectIdentifier _poid,
java.util.Set _pq)
|
static PKIXPolicyNode |
removePolicyNode(PKIXPolicyNode validPolicyTree,
java.util.List[] policyNodes,
PKIXPolicyNode _node)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ANY_POLICY
public static final java.lang.String ANY_POLICY
- See Also:
- Constant Field Values
PKIXPolicyTreeUtil
public PKIXPolicyTreeUtil()
removePolicyNode
public static PKIXPolicyNode removePolicyNode(PKIXPolicyNode validPolicyTree,
java.util.List[] policyNodes,
PKIXPolicyNode _node)
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