public class PKIXCertPathReviewer extends CertPathValidatorUtilities
Modifier and Type | Field and Description |
---|---|
protected CertPath |
certPath |
protected List |
certs |
protected List[] |
errors |
protected int |
n |
protected List[] |
notifications |
protected PKIXParameters |
pkixParams |
protected PolicyNode |
policyTree |
protected PublicKey |
subjectPublicKey |
protected TrustAnchor |
trustAnchor |
protected Date |
validDate |
ANY_POLICY, AUTHORITY_KEY_IDENTIFIER, BASIC_CONSTRAINTS, CERTIFICATE_POLICIES, CRL_DISTRIBUTION_POINTS, CRL_NUMBER, CRL_SIGN, CRL_UTIL, crlReasons, DELTA_CRL_INDICATOR, FRESHEST_CRL, INHIBIT_ANY_POLICY, ISSUING_DISTRIBUTION_POINT, KEY_CERT_SIGN, KEY_USAGE, NAME_CONSTRAINTS, POLICY_CONSTRAINTS, POLICY_MAPPINGS, SUBJECT_ALTERNATIVE_NAME
Constructor and Description |
---|
PKIXCertPathReviewer()
Creates an empty PKIXCertPathReviewer.
|
PKIXCertPathReviewer(CertPath certPath,
PKIXParameters params)
Creates a PKIXCertPathReviewer and initializes it with the given
CertPath and PKIXParameters params |
Modifier and Type | Method and Description |
---|---|
protected void |
addError(ErrorBundle msg) |
protected void |
addError(ErrorBundle msg,
int index) |
protected void |
addNotification(ErrorBundle msg) |
protected void |
addNotification(ErrorBundle msg,
int index) |
protected void |
doChecks() |
CertPath |
getCertPath() |
int |
getCertPathSize() |
protected Vector |
getCRLDistUrls(CRLDistPoint crlDistPoints) |
List[] |
getErrors()
Returns an Array of Lists which contains a List of global error messages
and a List of error messages for each certificate in the path.
|
List |
getErrors(int index)
Returns an List of error messages for the certificate at the given index in the CertPath.
|
List[] |
getNotifications()
Returns an Array of Lists which contains a List of global notification messages
and a List of botification messages for each certificate in the path.
|
List |
getNotifications(int index)
Returns an List of notification messages for the certificate at the given index in the CertPath.
|
protected Vector |
getOCSPUrls(AuthorityInformationAccess authInfoAccess) |
PolicyNode |
getPolicyTree() |
PublicKey |
getSubjectPublicKey() |
TrustAnchor |
getTrustAnchor() |
protected Collection |
getTrustAnchors(X509Certificate cert,
Set trustanchors) |
protected void |
checkCRLs(PKIXParameters paramsPKIX,
X509Certificate cert,
Date validDate,
X509Certificate sign,
PublicKey workingPublicKey,
Vector crlDistPointUrls,
int index) |
protected void |
checkRevocation(PKIXParameters paramsPKIX,
X509Certificate cert,
Date validDate,
X509Certificate sign,
PublicKey workingPublicKey,
Vector crlDistPointUrls,
Vector ocspUrls,
int index) |
void |
init(CertPath certPath,
PKIXParameters params)
Initializes the PKIXCertPathReviewer with the given
CertPath and PKIXParameters params |
boolean |
isValidCertPath() |
addAdditionalStoreFromLocation, addAdditionalStoresFromAltNames, addAdditionalStoresFromCRLDistributionPoint, findCertificates, findCertificates, findIssuerCerts, findTrustAnchor, findTrustAnchor, getAlgorithmIdentifier, getCertStatus, getCompleteCRLs, getCRLIssuersFromDistributionPoint, getDeltaCRLs, getEncodedIssuerPrincipal, getExtensionValue, getIssuerPrincipal, getNextWorkingKey, getQualifierSet, getSubjectPrincipal, getValidCertDateFromValidityModel, getValidDate, isAnyPolicy, isSelfIssued, prepareNextCertB1, prepareNextCertB2, processCertD1i, processCertD1ii, removePolicyNode, verifyX509Certificate
protected CertPath certPath
protected PKIXParameters pkixParams
protected Date validDate
protected List certs
protected int n
protected List[] notifications
protected List[] errors
protected TrustAnchor trustAnchor
protected PublicKey subjectPublicKey
protected PolicyNode policyTree
public PKIXCertPathReviewer(CertPath certPath, PKIXParameters params) throws CertPathReviewerException
CertPath
and PKIXParameters
paramscertPath
- the CertPath
to validateparams
- the PKIXParameters
to useCertPathReviewerException
- if the certPath is emptypublic PKIXCertPathReviewer()
public void init(CertPath certPath, PKIXParameters params) throws CertPathReviewerException
CertPath
and PKIXParameters
paramscertPath
- the CertPath
to validateparams
- the PKIXParameters
to useCertPathReviewerException
- if the certPath is emptyIllegalStateException
- if the PKIXCertPathReviewer
is already initializedpublic CertPath getCertPath()
public int getCertPathSize()
public List[] getErrors()
IllegalStateException
- if the PKIXCertPathReviewer
was not initializedpublic List getErrors(int index)
index
- the index of the certificate in the CertPathIllegalStateException
- if the PKIXCertPathReviewer
was not initializedpublic List[] getNotifications()
IllegalStateException
- if the PKIXCertPathReviewer
was not initializedpublic List getNotifications(int index)
index
- the index of the certificate in the CertPathIllegalStateException
- if the PKIXCertPathReviewer
was not initializedpublic PolicyNode getPolicyTree()
IllegalStateException
- if the PKIXCertPathReviewer
was not initializedpublic PublicKey getSubjectPublicKey()
IllegalStateException
- if the PKIXCertPathReviewer
was not initializedpublic TrustAnchor getTrustAnchor()
IllegalStateException
- if the PKIXCertPathReviewer
was not initializedpublic boolean isValidCertPath()
IllegalStateException
- if the PKIXCertPathReviewer
was not initializedprotected void addNotification(ErrorBundle msg)
protected void addNotification(ErrorBundle msg, int index)
protected void addError(ErrorBundle msg)
protected void addError(ErrorBundle msg, int index)
protected void doChecks()
protected void checkRevocation(PKIXParameters paramsPKIX, X509Certificate cert, Date validDate, X509Certificate sign, PublicKey workingPublicKey, Vector crlDistPointUrls, Vector ocspUrls, int index) throws CertPathReviewerException
CertPathReviewerException
protected void checkCRLs(PKIXParameters paramsPKIX, X509Certificate cert, Date validDate, X509Certificate sign, PublicKey workingPublicKey, Vector crlDistPointUrls, int index) throws CertPathReviewerException
CertPathReviewerException
protected Vector getCRLDistUrls(CRLDistPoint crlDistPoints)
protected Vector getOCSPUrls(AuthorityInformationAccess authInfoAccess)
protected Collection getTrustAnchors(X509Certificate cert, Set trustanchors) throws CertPathReviewerException
CertPathReviewerException
Copyright © 2015. All rights reserved.