public class FixedBCPKIXCertPathReviewer
extends org.bouncycastle.x509.PKIXCertPathReviewer
Modifier and Type | Field and Description |
---|---|
protected static String |
ANY_POLICY |
protected static String |
AUTHORITY_KEY_IDENTIFIER |
protected static String |
BASIC_CONSTRAINTS |
protected static String |
CERTIFICATE_POLICIES |
protected static String |
CRL_DISTRIBUTION_POINTS |
protected static String |
CRL_NUMBER |
protected static int |
CRL_SIGN |
protected static org.bouncycastle.x509.PKIXCRLUtil |
CRL_UTIL |
protected static String[] |
crlReasons |
protected static String |
DELTA_CRL_INDICATOR |
protected static String |
FRESHEST_CRL |
protected static String |
INHIBIT_ANY_POLICY |
protected static String |
ISSUING_DISTRIBUTION_POINT |
protected static int |
KEY_CERT_SIGN |
protected static String |
KEY_USAGE |
protected static String |
NAME_CONSTRAINTS |
protected ExtPKIXParameters2 |
pkixParams |
protected static String |
POLICY_CONSTRAINTS |
protected static String |
POLICY_MAPPINGS |
static String |
RESOURCE_NAME |
protected static String |
SUBJECT_ALTERNATIVE_NAME |
Constructor and Description |
---|
FixedBCPKIXCertPathReviewer(CertPath certPath,
ExtPKIXParameters2 params)
Creates a PKIXCertPathReviewer and initializes it with the given
CertPath and PKIXParameters params |
Modifier and Type | Method and Description |
---|---|
protected static void |
addAdditionalStoreFromLocation(String arg0,
org.bouncycastle.x509.ExtendedPKIXParameters arg1) |
protected static void |
addAdditionalStoresFromAltNames(X509Certificate arg0,
org.bouncycastle.x509.ExtendedPKIXParameters arg1) |
protected static void |
addAdditionalStoresFromCRLDistributionPoint(CRLDistPoint arg0,
org.bouncycastle.x509.ExtendedPKIXParameters arg1) |
protected void |
addError(SimpleValidationErrorException msg,
int index) |
protected void |
checkRevocation(ExtPKIXParameters2 paramsPKIX,
X509Certificate cert,
Date validDate,
X509Certificate sign,
PublicKey workingPublicKey) |
protected void |
doChecks() |
protected static Collection |
findCertificates(PKIXCertStoreSelector arg0,
List arg1) |
protected static Collection |
findCertificates(org.bouncycastle.x509.X509AttributeCertStoreSelector arg0,
List arg1) |
protected static Collection |
findCertificates(org.bouncycastle.x509.X509CertStoreSelector arg0,
List arg1) |
protected static TrustAnchor |
findTrustAnchor(X509Certificate arg0,
Set arg1) |
protected static TrustAnchor |
findTrustAnchor(X509Certificate arg0,
Set arg1,
String arg2) |
protected static AlgorithmIdentifier |
getAlgorithmIdentifier(PublicKey arg0) |
protected static void |
getCertStatus(Date arg0,
X509CRL arg1,
Object arg2,
org.bouncycastle.x509.CertStatus arg3) |
protected static Set |
getCompleteCRLs(DistributionPoint arg0,
Object arg1,
Date arg2,
org.bouncycastle.x509.ExtendedPKIXParameters arg3) |
protected Vector |
getCRLDistUrls(CRLDistPoint crlDistPoints) |
protected static void |
getCRLIssuersFromDistributionPoint(DistributionPoint arg0,
Collection arg1,
X509CRLSelector arg2,
org.bouncycastle.x509.ExtendedPKIXParameters arg3) |
protected static Set |
getDeltaCRLs(Date arg0,
org.bouncycastle.x509.ExtendedPKIXParameters arg1,
X509CRL arg2) |
protected static X500Principal |
getEncodedIssuerPrincipal(Object arg0) |
protected static ASN1Primitive |
getExtensionValue(X509Extension arg0,
String arg1) |
protected static X500Principal |
getIssuerPrincipal(X509CRL arg0) |
protected static PublicKey |
getNextWorkingKey(List arg0,
int arg1) |
protected static Set |
getQualifierSet(ASN1Sequence arg0) |
protected static X500Principal |
getSubjectPrincipal(X509Certificate arg0) |
protected static Date |
getValidCertDateFromValidityModel(org.bouncycastle.x509.ExtendedPKIXParameters arg0,
CertPath arg1,
int arg2) |
protected static Date |
getValidDate(PKIXParameters arg0) |
void |
init(CertPath certPath,
ExtPKIXParameters2 params)
Initializes the PKIXCertPathReviewer with the given
CertPath and PKIXParameters params |
protected static boolean |
isAnyPolicy(Set arg0) |
protected static boolean |
isSelfIssued(X509Certificate arg0) |
protected static void |
prepareNextCertB1(int arg0,
List[] arg1,
String arg2,
Map arg3,
X509Certificate arg4) |
protected static PKIXPolicyNode |
prepareNextCertB2(int arg0,
List[] arg1,
String arg2,
PKIXPolicyNode arg3) |
protected static boolean |
processCertD1i(int arg0,
List[] arg1,
ASN1ObjectIdentifier arg2,
Set arg3) |
protected static void |
processCertD1ii(int arg0,
List[] arg1,
ASN1ObjectIdentifier arg2,
Set arg3) |
protected static PKIXPolicyNode |
removePolicyNode(PKIXPolicyNode arg0,
List[] arg1,
PKIXPolicyNode arg2) |
protected static void |
verifyX509Certificate(X509Certificate arg0,
PublicKey arg1,
String arg2) |
addError, addError, addNotification, addNotification, checkCRLs, checkRevocation, getCertPath, getCertPathSize, getErrors, getErrors, getNotifications, getNotifications, getOCSPUrls, getPolicyTree, getSubjectPublicKey, getTrustAnchor, getTrustAnchors, init, isValidCertPath
public static final String RESOURCE_NAME
protected ExtPKIXParameters2 pkixParams
protected static final org.bouncycastle.x509.PKIXCRLUtil CRL_UTIL
protected static final String CERTIFICATE_POLICIES
protected static final String BASIC_CONSTRAINTS
protected static final String POLICY_MAPPINGS
protected static final String SUBJECT_ALTERNATIVE_NAME
protected static final String NAME_CONSTRAINTS
protected static final String KEY_USAGE
protected static final String INHIBIT_ANY_POLICY
protected static final String ISSUING_DISTRIBUTION_POINT
protected static final String DELTA_CRL_INDICATOR
protected static final String POLICY_CONSTRAINTS
protected static final String FRESHEST_CRL
protected static final String CRL_DISTRIBUTION_POINTS
protected static final String AUTHORITY_KEY_IDENTIFIER
protected static final String ANY_POLICY
protected static final String CRL_NUMBER
protected static final int KEY_CERT_SIGN
protected static final int CRL_SIGN
protected static final String[] crlReasons
public FixedBCPKIXCertPathReviewer(CertPath certPath, ExtPKIXParameters2 params) throws org.bouncycastle.x509.CertPathReviewerException
CertPath
and PKIXParameters
paramscertPath
- the CertPath
to validateparams
- the PKIXParameters
to useorg.bouncycastle.x509.CertPathReviewerException
- if the certPath is emptypublic void init(CertPath certPath, ExtPKIXParameters2 params) throws org.bouncycastle.x509.CertPathReviewerException
CertPath
and PKIXParameters
paramscertPath
- the CertPath
to validateparams
- the PKIXParameters
to useorg.bouncycastle.x509.CertPathReviewerException
- if the certPath is emptyIllegalStateException
- if the PKIXCertPathReviewer
is already initializedprotected void addError(SimpleValidationErrorException msg, int index)
protected void doChecks()
doChecks
in class org.bouncycastle.x509.PKIXCertPathReviewer
protected void checkRevocation(ExtPKIXParameters2 paramsPKIX, X509Certificate cert, Date validDate, X509Certificate sign, PublicKey workingPublicKey) throws SimpleValidationErrorException
SimpleValidationErrorException
protected Vector getCRLDistUrls(CRLDistPoint crlDistPoints)
getCRLDistUrls
in class org.bouncycastle.x509.PKIXCertPathReviewer
protected static TrustAnchor findTrustAnchor(X509Certificate arg0, Set arg1) throws AnnotatedException
AnnotatedException
protected static TrustAnchor findTrustAnchor(X509Certificate arg0, Set arg1, String arg2) throws AnnotatedException
AnnotatedException
protected static void addAdditionalStoresFromAltNames(X509Certificate arg0, org.bouncycastle.x509.ExtendedPKIXParameters arg1) throws CertificateParsingException
CertificateParsingException
protected static X500Principal getEncodedIssuerPrincipal(Object arg0)
protected static Date getValidDate(PKIXParameters arg0)
protected static X500Principal getSubjectPrincipal(X509Certificate arg0)
protected static boolean isSelfIssued(X509Certificate arg0)
protected static ASN1Primitive getExtensionValue(X509Extension arg0, String arg1) throws AnnotatedException
AnnotatedException
protected static X500Principal getIssuerPrincipal(X509CRL arg0)
protected static AlgorithmIdentifier getAlgorithmIdentifier(PublicKey arg0) throws CertPathValidatorException
CertPathValidatorException
protected static final Set getQualifierSet(ASN1Sequence arg0) throws CertPathValidatorException
CertPathValidatorException
protected static PKIXPolicyNode removePolicyNode(PKIXPolicyNode arg0, List[] arg1, PKIXPolicyNode arg2)
protected static boolean processCertD1i(int arg0, List[] arg1, ASN1ObjectIdentifier arg2, Set arg3)
protected static void processCertD1ii(int arg0, List[] arg1, ASN1ObjectIdentifier arg2, Set arg3)
protected static void prepareNextCertB1(int arg0, List[] arg1, String arg2, Map arg3, X509Certificate arg4) throws AnnotatedException, CertPathValidatorException
protected static PKIXPolicyNode prepareNextCertB2(int arg0, List[] arg1, String arg2, PKIXPolicyNode arg3)
protected static boolean isAnyPolicy(Set arg0)
protected static void addAdditionalStoreFromLocation(String arg0, org.bouncycastle.x509.ExtendedPKIXParameters arg1)
protected static Collection findCertificates(org.bouncycastle.x509.X509CertStoreSelector arg0, List arg1) throws AnnotatedException
AnnotatedException
protected static Collection findCertificates(PKIXCertStoreSelector arg0, List arg1) throws AnnotatedException
AnnotatedException
protected static Collection findCertificates(org.bouncycastle.x509.X509AttributeCertStoreSelector arg0, List arg1) throws AnnotatedException
AnnotatedException
protected static void addAdditionalStoresFromCRLDistributionPoint(CRLDistPoint arg0, org.bouncycastle.x509.ExtendedPKIXParameters arg1) throws AnnotatedException
AnnotatedException
protected static void getCRLIssuersFromDistributionPoint(DistributionPoint arg0, Collection arg1, X509CRLSelector arg2, org.bouncycastle.x509.ExtendedPKIXParameters arg3) throws AnnotatedException
AnnotatedException
protected static void getCertStatus(Date arg0, X509CRL arg1, Object arg2, org.bouncycastle.x509.CertStatus arg3) throws AnnotatedException
AnnotatedException
protected static Set getDeltaCRLs(Date arg0, org.bouncycastle.x509.ExtendedPKIXParameters arg1, X509CRL arg2) throws AnnotatedException
AnnotatedException
protected static Set getCompleteCRLs(DistributionPoint arg0, Object arg1, Date arg2, org.bouncycastle.x509.ExtendedPKIXParameters arg3) throws AnnotatedException
AnnotatedException
protected static Date getValidCertDateFromValidityModel(org.bouncycastle.x509.ExtendedPKIXParameters arg0, CertPath arg1, int arg2) throws AnnotatedException
AnnotatedException
protected static PublicKey getNextWorkingKey(List arg0, int arg1) throws CertPathValidatorException
CertPathValidatorException
protected static void verifyX509Certificate(X509Certificate arg0, PublicKey arg1, String arg2) throws GeneralSecurityException
GeneralSecurityException
Copyright © 2012-2017 European Middleware Initiative. All Rights Reserved.