Package org.bouncycastle.mail.smime.test
Class DummyCertPathReviewer
- java.lang.Object
-
- org.bouncycastle.x509.PKIXCertPathReviewer
-
- org.bouncycastle.mail.smime.test.DummyCertPathReviewer
-
public class DummyCertPathReviewer extends org.bouncycastle.x509.PKIXCertPathReviewer
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringANY_POLICYprotected static java.lang.StringBASIC_CONSTRAINTSprotected static java.lang.StringCERTIFICATE_POLICIESprotected static java.lang.StringCRL_NUMBERprotected static intCRL_SIGNprotected static java.lang.String[]crlReasonsprotected static java.lang.StringDELTA_CRL_INDICATORprotected static java.lang.StringINHIBIT_ANY_POLICYprotected static java.lang.StringISSUING_DISTRIBUTION_POINTprotected static intKEY_CERT_SIGNprotected static java.lang.StringKEY_USAGEprotected static java.lang.StringNAME_CONSTRAINTSprotected static java.lang.StringPOLICY_CONSTRAINTSprotected static java.lang.StringPOLICY_MAPPINGSprotected static java.lang.StringSUBJECT_ALTERNATIVE_NAME
-
Constructor Summary
Constructors Constructor Description DummyCertPathReviewer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static java.util.CollectionfindCertificates(org.bouncycastle.jcajce.PKIXCertStoreSelector arg0, java.util.List arg1)protected static java.util.CollectionfindCertificates(org.bouncycastle.x509.X509AttributeCertStoreSelector arg0, java.util.List arg1)protected static java.util.CollectionfindCertificates(org.bouncycastle.x509.X509CertStoreSelector arg0, java.util.List arg1)protected static org.bouncycastle.asn1.x509.AlgorithmIdentifiergetAlgorithmIdentifier(java.security.PublicKey arg0)protected static voidgetCertStatus(java.util.Date arg0, java.security.cert.X509CRL arg1, java.lang.Object arg2, org.bouncycastle.x509.CertStatus arg3)protected static javax.security.auth.x500.X500PrincipalgetEncodedIssuerPrincipal(java.lang.Object arg0)protected static org.bouncycastle.asn1.ASN1PrimitivegetExtensionValue(java.security.cert.X509Extension arg0, java.lang.String arg1)protected static javax.security.auth.x500.X500PrincipalgetIssuerPrincipal(java.security.cert.X509CRL arg0)protected static java.security.PublicKeygetNextWorkingKey(java.util.List arg0, int arg1)protected static java.util.SetgetQualifierSet(org.bouncycastle.asn1.ASN1Sequence arg0)protected static javax.security.auth.x500.X500PrincipalgetSubjectPrincipal(java.security.cert.X509Certificate arg0)protected static java.util.DategetValidDate(java.security.cert.PKIXParameters arg0)protected static java.util.DategetValidityDate(java.security.cert.PKIXParameters arg0, java.util.Date arg1)protected static booleanisAnyPolicy(java.util.Set arg0)protected static booleanisSelfIssued(java.security.cert.X509Certificate arg0)protected static voidprepareNextCertB1(int arg0, java.util.List[] arg1, java.lang.String arg2, java.util.Map arg3, java.security.cert.X509Certificate arg4)protected static org.bouncycastle.jce.provider.PKIXPolicyNodeprepareNextCertB2(int arg0, java.util.List[] arg1, java.lang.String arg2, org.bouncycastle.jce.provider.PKIXPolicyNode arg3)protected static booleanprocessCertD1i(int arg0, java.util.List[] arg1, org.bouncycastle.asn1.ASN1ObjectIdentifier arg2, java.util.Set arg3)protected static voidprocessCertD1ii(int arg0, java.util.List[] arg1, org.bouncycastle.asn1.ASN1ObjectIdentifier arg2, java.util.Set arg3)protected static org.bouncycastle.jce.provider.PKIXPolicyNoderemovePolicyNode(org.bouncycastle.jce.provider.PKIXPolicyNode arg0, java.util.List[] arg1, org.bouncycastle.jce.provider.PKIXPolicyNode arg2)protected static voidverifyX509Certificate(java.security.cert.X509Certificate arg0, java.security.PublicKey arg1, java.lang.String arg2)-
Methods inherited from class org.bouncycastle.x509.PKIXCertPathReviewer
addError, addError, addNotification, addNotification, checkCRLs, checkRevocation, doChecks, getCertPath, getCertPathSize, getCRLDistUrls, getErrors, getErrors, getNotifications, getNotifications, getOCSPUrls, getPolicyTree, getSubjectPublicKey, getTrustAnchor, getTrustAnchors, init, isValidCertPath
-
-
-
-
Field Detail
-
CERTIFICATE_POLICIES
protected static final java.lang.String CERTIFICATE_POLICIES
-
BASIC_CONSTRAINTS
protected static final java.lang.String BASIC_CONSTRAINTS
-
POLICY_MAPPINGS
protected static final java.lang.String POLICY_MAPPINGS
-
SUBJECT_ALTERNATIVE_NAME
protected static final java.lang.String SUBJECT_ALTERNATIVE_NAME
-
NAME_CONSTRAINTS
protected static final java.lang.String NAME_CONSTRAINTS
-
KEY_USAGE
protected static final java.lang.String KEY_USAGE
-
INHIBIT_ANY_POLICY
protected static final java.lang.String INHIBIT_ANY_POLICY
-
ISSUING_DISTRIBUTION_POINT
protected static final java.lang.String ISSUING_DISTRIBUTION_POINT
-
DELTA_CRL_INDICATOR
protected static final java.lang.String DELTA_CRL_INDICATOR
-
POLICY_CONSTRAINTS
protected static final java.lang.String POLICY_CONSTRAINTS
-
CRL_NUMBER
protected static final java.lang.String CRL_NUMBER
-
ANY_POLICY
protected static final java.lang.String ANY_POLICY
- See Also:
- Constant Field Values
-
KEY_CERT_SIGN
protected static final int KEY_CERT_SIGN
- See Also:
- Constant Field Values
-
CRL_SIGN
protected static final int CRL_SIGN
- See Also:
- Constant Field Values
-
crlReasons
protected static final java.lang.String[] crlReasons
-
-
Method Detail
-
getEncodedIssuerPrincipal
protected static javax.security.auth.x500.X500Principal getEncodedIssuerPrincipal(java.lang.Object arg0)
-
getValidityDate
protected static java.util.Date getValidityDate(java.security.cert.PKIXParameters arg0, java.util.Date arg1)
-
getValidDate
protected static java.util.Date getValidDate(java.security.cert.PKIXParameters arg0)
-
getSubjectPrincipal
protected static javax.security.auth.x500.X500Principal getSubjectPrincipal(java.security.cert.X509Certificate arg0)
-
isSelfIssued
protected static boolean isSelfIssued(java.security.cert.X509Certificate arg0)
-
getExtensionValue
protected static org.bouncycastle.asn1.ASN1Primitive getExtensionValue(java.security.cert.X509Extension arg0, java.lang.String arg1) throws org.bouncycastle.jce.provider.AnnotatedException- Throws:
org.bouncycastle.jce.provider.AnnotatedException
-
getIssuerPrincipal
protected static javax.security.auth.x500.X500Principal getIssuerPrincipal(java.security.cert.X509CRL arg0)
-
getAlgorithmIdentifier
protected static org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier(java.security.PublicKey arg0) throws java.security.cert.CertPathValidatorException- Throws:
java.security.cert.CertPathValidatorException
-
getQualifierSet
protected static final java.util.Set getQualifierSet(org.bouncycastle.asn1.ASN1Sequence arg0) throws java.security.cert.CertPathValidatorException- Throws:
java.security.cert.CertPathValidatorException
-
removePolicyNode
protected static org.bouncycastle.jce.provider.PKIXPolicyNode removePolicyNode(org.bouncycastle.jce.provider.PKIXPolicyNode arg0, java.util.List[] arg1, org.bouncycastle.jce.provider.PKIXPolicyNode arg2)
-
processCertD1i
protected static boolean processCertD1i(int arg0, java.util.List[] arg1, org.bouncycastle.asn1.ASN1ObjectIdentifier arg2, java.util.Set arg3)
-
processCertD1ii
protected static void processCertD1ii(int arg0, java.util.List[] arg1, org.bouncycastle.asn1.ASN1ObjectIdentifier arg2, java.util.Set arg3)
-
prepareNextCertB1
protected static void prepareNextCertB1(int arg0, java.util.List[] arg1, java.lang.String arg2, java.util.Map arg3, java.security.cert.X509Certificate arg4) throws org.bouncycastle.jce.provider.AnnotatedException, java.security.cert.CertPathValidatorException- Throws:
org.bouncycastle.jce.provider.AnnotatedExceptionjava.security.cert.CertPathValidatorException
-
prepareNextCertB2
protected static org.bouncycastle.jce.provider.PKIXPolicyNode prepareNextCertB2(int arg0, java.util.List[] arg1, java.lang.String arg2, org.bouncycastle.jce.provider.PKIXPolicyNode arg3)
-
isAnyPolicy
protected static boolean isAnyPolicy(java.util.Set arg0)
-
findCertificates
protected static java.util.Collection findCertificates(org.bouncycastle.x509.X509CertStoreSelector arg0, java.util.List arg1) throws org.bouncycastle.jce.provider.AnnotatedException- Throws:
org.bouncycastle.jce.provider.AnnotatedException
-
findCertificates
protected static java.util.Collection findCertificates(org.bouncycastle.jcajce.PKIXCertStoreSelector arg0, java.util.List arg1) throws org.bouncycastle.jce.provider.AnnotatedException- Throws:
org.bouncycastle.jce.provider.AnnotatedException
-
findCertificates
protected static java.util.Collection findCertificates(org.bouncycastle.x509.X509AttributeCertStoreSelector arg0, java.util.List arg1) throws org.bouncycastle.jce.provider.AnnotatedException- Throws:
org.bouncycastle.jce.provider.AnnotatedException
-
getCertStatus
protected static void getCertStatus(java.util.Date arg0, java.security.cert.X509CRL arg1, java.lang.Object arg2, org.bouncycastle.x509.CertStatus arg3) throws org.bouncycastle.jce.provider.AnnotatedException- Throws:
org.bouncycastle.jce.provider.AnnotatedException
-
getNextWorkingKey
protected static java.security.PublicKey getNextWorkingKey(java.util.List arg0, int arg1) throws java.security.cert.CertPathValidatorException- Throws:
java.security.cert.CertPathValidatorException
-
verifyX509Certificate
protected static void verifyX509Certificate(java.security.cert.X509Certificate arg0, java.security.PublicKey arg1, java.lang.String arg2) throws java.security.GeneralSecurityException- Throws:
java.security.GeneralSecurityException
-
-