|
Bouncy Castle Cryptography Library 1.36 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.jce.provider.CertPathValidatorUtilities
org.bouncycastle.x509.PKIXCertPathReviewer
public class PKIXCertPathReviewer
PKIXCertPathReviewer
Validation of X.509 Certificate Paths. Tries to find as much errors in the Path as possible.
| Field Summary | |
|---|---|
protected java.security.cert.CertPath |
certPath
|
protected java.util.List |
certs
|
protected java.util.List[] |
errors
|
protected int |
n
|
protected java.util.List[] |
notifications
|
protected java.security.cert.PKIXParameters |
pkixParams
|
protected java.security.cert.PolicyNode |
policyTree
|
protected java.security.PublicKey |
subjectPublicKey
|
protected java.security.cert.TrustAnchor |
trustAnchor
|
protected java.util.Date |
validDate
|
| Fields inherited from class org.bouncycastle.jce.provider.CertPathValidatorUtilities |
|---|
ANY_POLICY, AUTHORITY_KEY_IDENTIFIER, BASIC_CONSTRAINTS, CERTIFICATE_POLICIES, CRL_DISTRIBUTION_POINTS, CRL_NUMBER, CRL_SIGN, 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 Summary | |
|---|---|
PKIXCertPathReviewer(java.security.cert.CertPath certPath,
java.security.cert.PKIXParameters params)
Creates a PKIXCertPathReviewer for the given CertPath and PKIXParameters params |
|
| Method Summary | |
|---|---|
protected void |
addError(org.bouncycastle.i18n.ErrorBundle msg)
|
protected void |
addError(org.bouncycastle.i18n.ErrorBundle msg,
int index)
|
protected void |
addNotification(org.bouncycastle.i18n.ErrorBundle msg)
|
protected void |
addNotification(org.bouncycastle.i18n.ErrorBundle msg,
int index)
|
protected void |
checkCRLs(java.security.cert.PKIXParameters paramsPKIX,
java.security.cert.X509Certificate cert,
java.util.Date validDate,
java.security.cert.X509Certificate sign,
java.security.PublicKey workingPublicKey,
java.util.Vector crlDistPointUrls,
int index)
|
protected void |
checkRevocation(java.security.cert.PKIXParameters paramsPKIX,
java.security.cert.X509Certificate cert,
java.util.Date validDate,
java.security.cert.X509Certificate sign,
java.security.PublicKey workingPublicKey,
java.util.Vector crlDistPointUrls,
java.util.Vector ocspUrls,
int index)
|
protected void |
doChecks()
|
java.security.cert.CertPath |
getCertPath()
|
int |
getCertPathSize()
|
protected java.util.Vector |
getCRLDistUrls(CRLDistPoint crlDistPoints,
AuthorityInformationAccess authInfoAcc)
|
java.util.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. |
java.util.List |
getErrors(int index)
Returns an List of error messages for the certificate at the given index in the CertPath. |
java.util.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. |
java.util.List |
getNotifications(int index)
Returns an List of notification messages for the certificate at the given index in the CertPath. |
protected java.util.Vector |
getOCSPUrls(AuthorityInformationAccess authInfoAccess)
|
java.security.cert.PolicyNode |
getPolicyTree()
|
java.security.PublicKey |
getSubjectPublicKey()
|
java.security.cert.TrustAnchor |
getTrustAnchor()
|
boolean |
isValidCertPath()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.security.cert.CertPath certPath
protected java.security.cert.PKIXParameters pkixParams
protected java.util.Date validDate
protected java.util.List certs
protected int n
protected java.util.List[] notifications
protected java.util.List[] errors
protected java.security.cert.TrustAnchor trustAnchor
protected java.security.PublicKey subjectPublicKey
protected java.security.cert.PolicyNode policyTree
| Constructor Detail |
|---|
public PKIXCertPathReviewer(java.security.cert.CertPath certPath,
java.security.cert.PKIXParameters params)
throws CertPathReviewerException
CertPath and PKIXParameters params
certPath - the CertPath to validateparams - the PKIXParameters to use
CertPathReviewerException - if the certPath is empty| Method Detail |
|---|
public java.security.cert.CertPath getCertPath()
public int getCertPathSize()
public java.util.List[] getErrors()
public java.util.List getErrors(int index)
index - the index of the certificate in the CertPath
public java.util.List[] getNotifications()
public java.util.List getNotifications(int index)
index - the index of the certificate in the CertPath
public java.security.cert.PolicyNode getPolicyTree()
public java.security.PublicKey getSubjectPublicKey()
public java.security.cert.TrustAnchor getTrustAnchor()
public boolean isValidCertPath()
protected void addNotification(org.bouncycastle.i18n.ErrorBundle msg)
protected void addNotification(org.bouncycastle.i18n.ErrorBundle msg,
int index)
protected void addError(org.bouncycastle.i18n.ErrorBundle msg)
protected void addError(org.bouncycastle.i18n.ErrorBundle msg,
int index)
protected void doChecks()
protected void checkRevocation(java.security.cert.PKIXParameters paramsPKIX,
java.security.cert.X509Certificate cert,
java.util.Date validDate,
java.security.cert.X509Certificate sign,
java.security.PublicKey workingPublicKey,
java.util.Vector crlDistPointUrls,
java.util.Vector ocspUrls,
int index)
throws CertPathReviewerException
CertPathReviewerException
protected void checkCRLs(java.security.cert.PKIXParameters paramsPKIX,
java.security.cert.X509Certificate cert,
java.util.Date validDate,
java.security.cert.X509Certificate sign,
java.security.PublicKey workingPublicKey,
java.util.Vector crlDistPointUrls,
int index)
throws CertPathReviewerException
CertPathReviewerException
protected java.util.Vector getCRLDistUrls(CRLDistPoint crlDistPoints,
AuthorityInformationAccess authInfoAcc)
protected java.util.Vector getOCSPUrls(AuthorityInformationAccess authInfoAccess)
|
Bouncy Castle Cryptography Library 1.36 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||