public class RFC3280CertPathUtilities extends Object
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 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 static String |
POLICY_CONSTRAINTS |
protected static String |
POLICY_MAPPINGS |
protected static String |
SUBJECT_ALTERNATIVE_NAME |
Constructor and Description |
---|
RFC3280CertPathUtilities() |
Modifier and Type | Method and Description |
---|---|
protected static void |
checkCRLs(ExtendedPKIXParameters paramsPKIX,
X509Certificate cert,
Date validDate,
X509Certificate sign,
PublicKey workingPublicKey,
List certPathCerts)
Checks a certificate if it is revoked.
|
protected static PKIXPolicyNode |
prepareCertB(CertPath certPath,
int index,
List[] policyNodes,
PKIXPolicyNode validPolicyTree,
int policyMapping) |
protected static void |
prepareNextCertA(CertPath certPath,
int index) |
protected static void |
prepareNextCertG(CertPath certPath,
int index,
PKIXNameConstraintValidator nameConstraintValidator) |
protected static int |
prepareNextCertH1(CertPath certPath,
int index,
int explicitPolicy) |
protected static int |
prepareNextCertH2(CertPath certPath,
int index,
int policyMapping) |
protected static int |
prepareNextCertH3(CertPath certPath,
int index,
int inhibitAnyPolicy) |
protected static int |
prepareNextCertI1(CertPath certPath,
int index,
int explicitPolicy) |
protected static int |
prepareNextCertI2(CertPath certPath,
int index,
int policyMapping) |
protected static int |
prepareNextCertJ(CertPath certPath,
int index,
int inhibitAnyPolicy) |
protected static void |
prepareNextCertK(CertPath certPath,
int index) |
protected static int |
prepareNextCertL(CertPath certPath,
int index,
int maxPathLength) |
protected static int |
prepareNextCertM(CertPath certPath,
int index,
int maxPathLength) |
protected static void |
prepareNextCertN(CertPath certPath,
int index) |
protected static void |
prepareNextCertO(CertPath certPath,
int index,
Set criticalExtensions,
List pathCheckers) |
protected static void |
processCertA(CertPath certPath,
ExtendedPKIXParameters paramsPKIX,
int index,
PublicKey workingPublicKey,
boolean verificationAlreadyPerformed,
X500Principal workingIssuerName,
X509Certificate sign) |
protected static void |
processCertBC(CertPath certPath,
int index,
PKIXNameConstraintValidator nameConstraintValidator) |
protected static PKIXPolicyNode |
processCertD(CertPath certPath,
int index,
Set acceptablePolicies,
PKIXPolicyNode validPolicyTree,
List[] policyNodes,
int inhibitAnyPolicy) |
protected static PKIXPolicyNode |
processCertE(CertPath certPath,
int index,
PKIXPolicyNode validPolicyTree) |
protected static void |
processCertF(CertPath certPath,
int index,
PKIXPolicyNode validPolicyTree,
int explicitPolicy) |
protected static Set |
processCRLA1i(Date currentDate,
ExtendedPKIXParameters paramsPKIX,
X509Certificate cert,
X509CRL crl) |
protected static Set[] |
processCRLA1ii(Date currentDate,
ExtendedPKIXParameters paramsPKIX,
X509Certificate cert,
X509CRL crl) |
protected static void |
processCRLB1(DistributionPoint dp,
Object cert,
X509CRL crl)
If the DP includes cRLIssuer, then verify that the issuer field in the
complete CRL matches cRLIssuer in the DP and that the complete CRL
contains an issuing distribution point extension with the indirectCRL
boolean asserted.
|
protected static void |
processCRLB2(DistributionPoint dp,
Object cert,
X509CRL crl)
If the complete CRL includes an issuing distribution point (IDP) CRL
extension check the following:
(i) If the distribution point name is present in the IDP CRL extension
and the distribution field is present in the DP, then verify that one of
the names in the IDP matches one of the names in the DP.
|
protected static void |
processCRLC(X509CRL deltaCRL,
X509CRL completeCRL,
ExtendedPKIXParameters pkixParams)
If use-deltas is set, verify the issuer and scope of the delta CRL.
|
protected static old.org.bouncycastle.jce.provider.ReasonsMask |
processCRLD(X509CRL crl,
DistributionPoint dp) |
protected static Set |
processCRLF(X509CRL crl,
Object cert,
X509Certificate defaultCRLSignCert,
PublicKey defaultCRLSignKey,
ExtendedPKIXParameters paramsPKIX,
List certPathCerts)
Obtain and validate the certification path for the complete CRL issuer.
|
protected static PublicKey |
processCRLG(X509CRL crl,
Set keys) |
protected static X509CRL |
processCRLH(Set deltacrls,
PublicKey key) |
protected static void |
processCRLI(Date validDate,
X509CRL deltacrl,
Object cert,
old.org.bouncycastle.jce.provider.CertStatus certStatus,
ExtendedPKIXParameters pkixParams) |
protected static void |
processCRLJ(Date validDate,
X509CRL completecrl,
Object cert,
old.org.bouncycastle.jce.provider.CertStatus certStatus) |
protected static int |
wrapupCertA(int explicitPolicy,
X509Certificate cert) |
protected static int |
wrapupCertB(CertPath certPath,
int index,
int explicitPolicy) |
protected static void |
wrapupCertF(CertPath certPath,
int index,
List pathCheckers,
Set criticalExtensions) |
protected static PKIXPolicyNode |
wrapupCertG(CertPath certPath,
ExtendedPKIXParameters paramsPKIX,
Set userInitialPolicySet,
int index,
List[] policyNodes,
PKIXPolicyNode validPolicyTree,
Set acceptablePolicies) |
protected static final String CERTIFICATE_POLICIES
protected static final String POLICY_MAPPINGS
protected static final String INHIBIT_ANY_POLICY
protected static final String ISSUING_DISTRIBUTION_POINT
protected static final String FRESHEST_CRL
protected static final String DELTA_CRL_INDICATOR
protected static final String POLICY_CONSTRAINTS
protected static final String BASIC_CONSTRAINTS
protected static final String CRL_DISTRIBUTION_POINTS
protected static final String SUBJECT_ALTERNATIVE_NAME
protected static final String NAME_CONSTRAINTS
protected static final String AUTHORITY_KEY_IDENTIFIER
protected static final String KEY_USAGE
protected static final String CRL_NUMBER
protected static final String ANY_POLICY
protected static final int KEY_CERT_SIGN
protected static final int CRL_SIGN
protected static final String[] crlReasons
protected static void processCRLB2(DistributionPoint dp, Object cert, X509CRL crl) throws AnnotatedException
dp
- The distribution point.cert
- The certificate.crl
- The CRL.AnnotatedException
- if one of the conditions is not met or an error occurs.protected static void processCRLB1(DistributionPoint dp, Object cert, X509CRL crl) throws AnnotatedException
dp
- The distribution point.cert
- The certificate ot attribute certificate.crl
- The CRL for cert
.AnnotatedException
- if one of the above conditions does not apply or an error
occurs.protected static old.org.bouncycastle.jce.provider.ReasonsMask processCRLD(X509CRL crl, DistributionPoint dp) throws AnnotatedException
AnnotatedException
protected static Set processCRLF(X509CRL crl, Object cert, X509Certificate defaultCRLSignCert, PublicKey defaultCRLSignKey, ExtendedPKIXParameters paramsPKIX, List certPathCerts) throws AnnotatedException
crl
- CRL which contains revocation information for the certificate
cert
.cert
- The attribute certificate or certificate to check if it is
revoked.defaultCRLSignCert
- The issuer certificate of the certificate cert
.defaultCRLSignKey
- The public key of the issuer certificate
defaultCRLSignCert
.paramsPKIX
- paramsPKIX PKIX parameters.certPathCerts
- The certificates on the certification path.Set
with all keys of possible CRL issuer
certificates.AnnotatedException
- if the CRL is not valid or the status cannot be checked or
some error occurs.protected static PublicKey processCRLG(X509CRL crl, Set keys) throws AnnotatedException
AnnotatedException
protected static X509CRL processCRLH(Set deltacrls, PublicKey key) throws AnnotatedException
AnnotatedException
protected static Set processCRLA1i(Date currentDate, ExtendedPKIXParameters paramsPKIX, X509Certificate cert, X509CRL crl) throws AnnotatedException
AnnotatedException
protected static Set[] processCRLA1ii(Date currentDate, ExtendedPKIXParameters paramsPKIX, X509Certificate cert, X509CRL crl) throws AnnotatedException
AnnotatedException
protected static void processCRLC(X509CRL deltaCRL, X509CRL completeCRL, ExtendedPKIXParameters pkixParams) throws AnnotatedException
deltaCRL
- The delta CRL.completeCRL
- The complete CRL.pkixParams
- The PKIX paramaters.AnnotatedException
- if an exception occurs.protected static void processCRLI(Date validDate, X509CRL deltacrl, Object cert, old.org.bouncycastle.jce.provider.CertStatus certStatus, ExtendedPKIXParameters pkixParams) throws AnnotatedException
AnnotatedException
protected static void processCRLJ(Date validDate, X509CRL completecrl, Object cert, old.org.bouncycastle.jce.provider.CertStatus certStatus) throws AnnotatedException
AnnotatedException
protected static PKIXPolicyNode prepareCertB(CertPath certPath, int index, List[] policyNodes, PKIXPolicyNode validPolicyTree, int policyMapping) throws CertPathValidatorException
CertPathValidatorException
protected static void prepareNextCertA(CertPath certPath, int index) throws CertPathValidatorException
CertPathValidatorException
protected static void processCertF(CertPath certPath, int index, PKIXPolicyNode validPolicyTree, int explicitPolicy) throws CertPathValidatorException
CertPathValidatorException
protected static PKIXPolicyNode processCertE(CertPath certPath, int index, PKIXPolicyNode validPolicyTree) throws CertPathValidatorException
CertPathValidatorException
protected static void processCertBC(CertPath certPath, int index, PKIXNameConstraintValidator nameConstraintValidator) throws CertPathValidatorException
CertPathValidatorException
protected static PKIXPolicyNode processCertD(CertPath certPath, int index, Set acceptablePolicies, PKIXPolicyNode validPolicyTree, List[] policyNodes, int inhibitAnyPolicy) throws CertPathValidatorException
CertPathValidatorException
protected static void processCertA(CertPath certPath, ExtendedPKIXParameters paramsPKIX, int index, PublicKey workingPublicKey, boolean verificationAlreadyPerformed, X500Principal workingIssuerName, X509Certificate sign) throws ExtCertPathValidatorException
ExtCertPathValidatorException
protected static int prepareNextCertI1(CertPath certPath, int index, int explicitPolicy) throws CertPathValidatorException
CertPathValidatorException
protected static int prepareNextCertI2(CertPath certPath, int index, int policyMapping) throws CertPathValidatorException
CertPathValidatorException
protected static void prepareNextCertG(CertPath certPath, int index, PKIXNameConstraintValidator nameConstraintValidator) throws CertPathValidatorException
CertPathValidatorException
protected static void checkCRLs(ExtendedPKIXParameters paramsPKIX, X509Certificate cert, Date validDate, X509Certificate sign, PublicKey workingPublicKey, List certPathCerts) throws AnnotatedException
paramsPKIX
- PKIX parameters.cert
- Certificate to check if it is revoked.validDate
- The date when the certificate revocation status should be
checked.sign
- The issuer certificate of the certificate cert
.workingPublicKey
- The public key of the issuer certificate sign
.certPathCerts
- The certificates of the certification path.AnnotatedException
- if the certificate is revoked or the status cannot be checked
or some error occurs.protected static int prepareNextCertJ(CertPath certPath, int index, int inhibitAnyPolicy) throws CertPathValidatorException
CertPathValidatorException
protected static void prepareNextCertK(CertPath certPath, int index) throws CertPathValidatorException
CertPathValidatorException
protected static int prepareNextCertL(CertPath certPath, int index, int maxPathLength) throws CertPathValidatorException
CertPathValidatorException
protected static int prepareNextCertM(CertPath certPath, int index, int maxPathLength) throws CertPathValidatorException
CertPathValidatorException
protected static void prepareNextCertN(CertPath certPath, int index) throws CertPathValidatorException
CertPathValidatorException
protected static void prepareNextCertO(CertPath certPath, int index, Set criticalExtensions, List pathCheckers) throws CertPathValidatorException
CertPathValidatorException
protected static int prepareNextCertH1(CertPath certPath, int index, int explicitPolicy)
protected static int prepareNextCertH2(CertPath certPath, int index, int policyMapping)
protected static int prepareNextCertH3(CertPath certPath, int index, int inhibitAnyPolicy)
protected static int wrapupCertA(int explicitPolicy, X509Certificate cert)
protected static int wrapupCertB(CertPath certPath, int index, int explicitPolicy) throws CertPathValidatorException
CertPathValidatorException
protected static void wrapupCertF(CertPath certPath, int index, List pathCheckers, Set criticalExtensions) throws CertPathValidatorException
CertPathValidatorException
protected static PKIXPolicyNode wrapupCertG(CertPath certPath, ExtendedPKIXParameters paramsPKIX, Set userInitialPolicySet, int index, List[] policyNodes, PKIXPolicyNode validPolicyTree, Set acceptablePolicies) throws CertPathValidatorException
CertPathValidatorException
Copyright © 2015. All rights reserved.