Java Doc for PKIXCertPathReviewer.java in  » Security » Bouncy-Castle » org » bouncycastle » x509 » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Security » Bouncy Castle » org.bouncycastle.x509 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.bouncycastle.jce.provider.CertPathValidatorUtilities
      org.bouncycastle.x509.PKIXCertPathReviewer

All known Subclasses:   org.bouncycastle.mail.smime.test.DummyCertPathReviewer,
PKIXCertPathReviewer
public class PKIXCertPathReviewer extends CertPathValidatorUtilities (Code)
PKIXCertPathReviewer
Validation of X.509 Certificate Paths. Tries to find as much errors in the Path as possible.


Field Summary
protected  CertPathcertPath
    
protected  Listcerts
    
protected  List[]errors
    
protected  intn
    
protected  List[]notifications
    
protected  PKIXParameterspkixParams
    
protected  PolicyNodepolicyTree
    
protected  PublicKeysubjectPublicKey
    
protected  TrustAnchortrustAnchor
    
protected  DatevalidDate
    

Constructor Summary
public  PKIXCertPathReviewer(CertPath certPath, PKIXParameters params)
    
public  PKIXCertPathReviewer()
     Creates an empty PKIXCertPathReviewer.

Method Summary
protected  voidaddError(ErrorBundle msg)
    
protected  voidaddError(ErrorBundle msg, int index)
    
protected  voidaddNotification(ErrorBundle msg)
    
protected  voidaddNotification(ErrorBundle msg, int index)
    
protected  voidcheckCRLs(PKIXParameters paramsPKIX, X509Certificate cert, Date validDate, X509Certificate sign, PublicKey workingPublicKey, Vector crlDistPointUrls, int index)
    
protected  voidcheckRevocation(PKIXParameters paramsPKIX, X509Certificate cert, Date validDate, X509Certificate sign, PublicKey workingPublicKey, Vector crlDistPointUrls, Vector ocspUrls, int index)
    
protected  voiddoChecks()
    
protected  VectorgetCRLDistUrls(CRLDistPoint crlDistPoints)
    
public  CertPathgetCertPath()
    
public  intgetCertPathSize()
    
public  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. The global error List is at index 0.
public  ListgetErrors(int index)
     Returns an List of error messages for the certificate at the given index in the CertPath. If index == -1 then the list of global errors is returned with errors not specific to a certificate.
public  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. The global notificatio List is at index 0.
public  ListgetNotifications(int index)
     Returns an List of notification messages for the certificate at the given index in the CertPath. If index == -1 then the list of global notifications is returned with notifications not specific to a certificate.
protected  VectorgetOCSPUrls(AuthorityInformationAccess authInfoAccess)
    
public  PolicyNodegetPolicyTree()
    
public  PublicKeygetSubjectPublicKey()
    
public  TrustAnchorgetTrustAnchor()
    
public  voidinit(CertPath certPath, PKIXParameters params)
    
public  booleanisValidCertPath()
    

Field Detail
certPath
protected CertPath certPath(Code)



certs
protected List certs(Code)



errors
protected List[] errors(Code)



n
protected int n(Code)



notifications
protected List[] notifications(Code)



pkixParams
protected PKIXParameters pkixParams(Code)



policyTree
protected PolicyNode policyTree(Code)



subjectPublicKey
protected PublicKey subjectPublicKey(Code)



trustAnchor
protected TrustAnchor trustAnchor(Code)



validDate
protected Date validDate(Code)




Constructor Detail
PKIXCertPathReviewer
public PKIXCertPathReviewer(CertPath certPath, PKIXParameters params) throws CertPathReviewerException(Code)
Creates a PKIXCertPathReviewer and initializes it with the given CertPath and PKIXParameters params
Parameters:
  certPath - the CertPath to validate
Parameters:
  params - the PKIXParameters to use
throws:
  CertPathReviewerException - if the certPath is empty



PKIXCertPathReviewer
public PKIXCertPathReviewer()(Code)
Creates an empty PKIXCertPathReviewer. Don't forget to call init() to initialize the object.




Method Detail
addError
protected void addError(ErrorBundle msg)(Code)



addError
protected void addError(ErrorBundle msg, int index)(Code)



addNotification
protected void addNotification(ErrorBundle msg)(Code)



addNotification
protected void addNotification(ErrorBundle msg, int index)(Code)



checkCRLs
protected void checkCRLs(PKIXParameters paramsPKIX, X509Certificate cert, Date validDate, X509Certificate sign, PublicKey workingPublicKey, Vector crlDistPointUrls, int index) throws CertPathReviewerException(Code)



checkRevocation
protected void checkRevocation(PKIXParameters paramsPKIX, X509Certificate cert, Date validDate, X509Certificate sign, PublicKey workingPublicKey, Vector crlDistPointUrls, Vector ocspUrls, int index) throws CertPathReviewerException(Code)



doChecks
protected void doChecks()(Code)



getCRLDistUrls
protected Vector getCRLDistUrls(CRLDistPoint crlDistPoints)(Code)



getCertPath
public CertPath getCertPath()(Code)
the CertPath that was validated



getCertPathSize
public int getCertPathSize()(Code)
the size of the CertPath



getErrors
public List[] getErrors()(Code)
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. The global error List is at index 0. The error lists for each certificate at index 1 to n. The error messages are of type. the Array of Lists which contain the error messages
throws:
  IllegalStateException - if the PKIXCertPathReviewer was not initialized



getErrors
public List getErrors(int index)(Code)
Returns an List of error messages for the certificate at the given index in the CertPath. If index == -1 then the list of global errors is returned with errors not specific to a certificate.
Parameters:
  index - the index of the certificate in the CertPath List of error messages for the certificate
throws:
  IllegalStateException - if the PKIXCertPathReviewer was not initialized



getNotifications
public List[] getNotifications()(Code)
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. The global notificatio List is at index 0. The notification lists for each certificate at index 1 to n. The error messages are of type. the Array of Lists which contain the notification messages
throws:
  IllegalStateException - if the PKIXCertPathReviewer was not initialized



getNotifications
public List getNotifications(int index)(Code)
Returns an List of notification messages for the certificate at the given index in the CertPath. If index == -1 then the list of global notifications is returned with notifications not specific to a certificate.
Parameters:
  index - the index of the certificate in the CertPath List of notification messages for the certificate
throws:
  IllegalStateException - if the PKIXCertPathReviewer was not initialized



getOCSPUrls
protected Vector getOCSPUrls(AuthorityInformationAccess authInfoAccess)(Code)



getPolicyTree
public PolicyNode getPolicyTree()(Code)
the valid policy tree, null if no valid policy exists.
throws:
  IllegalStateException - if the PKIXCertPathReviewer was not initialized



getSubjectPublicKey
public PublicKey getSubjectPublicKey()(Code)
the PublicKey if the last certificate in the CertPath
throws:
  IllegalStateException - if the PKIXCertPathReviewer was not initialized



getTrustAnchor
public TrustAnchor getTrustAnchor()(Code)
the TrustAnchor for the CertPath, null if no valid TrustAnchor was found.
throws:
  IllegalStateException - if the PKIXCertPathReviewer was not initialized



init
public void init(CertPath certPath, PKIXParameters params) throws CertPathReviewerException(Code)
Initializes the PKIXCertPathReviewer with the given CertPath and PKIXParameters params
Parameters:
  certPath - the CertPath to validate
Parameters:
  params - the PKIXParameters to use
throws:
  CertPathReviewerException - if the certPath is empty
throws:
  IllegalStateException - if the PKIXCertPathReviewer is already initialized



isValidCertPath
public boolean isValidCertPath()(Code)
if the CertPath is valid
throws:
  IllegalStateException - if the PKIXCertPathReviewer was not initialized



Fields inherited from org.bouncycastle.jce.provider.CertPathValidatorUtilities
final protected static String ANY_POLICY(Code)(Java Doc)
final protected static String AUTHORITY_KEY_IDENTIFIER(Code)(Java Doc)
final protected static String BASIC_CONSTRAINTS(Code)(Java Doc)
final protected static String CERTIFICATE_POLICIES(Code)(Java Doc)
final protected static String CRL_DISTRIBUTION_POINTS(Code)(Java Doc)
final protected static String CRL_NUMBER(Code)(Java Doc)
final protected static int CRL_SIGN(Code)(Java Doc)
final protected static String DELTA_CRL_INDICATOR(Code)(Java Doc)
final protected static String FRESHEST_CRL(Code)(Java Doc)
final protected static String INHIBIT_ANY_POLICY(Code)(Java Doc)
final protected static String ISSUING_DISTRIBUTION_POINT(Code)(Java Doc)
final protected static int KEY_CERT_SIGN(Code)(Java Doc)
final protected static String KEY_USAGE(Code)(Java Doc)
final protected static String NAME_CONSTRAINTS(Code)(Java Doc)
final protected static String POLICY_CONSTRAINTS(Code)(Java Doc)
final protected static String POLICY_MAPPINGS(Code)(Java Doc)
final protected static String SUBJECT_ALTERNATIVE_NAME(Code)(Java Doc)
final protected static String[] crlReasons(Code)(Java Doc)

Methods inherited from org.bouncycastle.jce.provider.CertPathValidatorUtilities
protected static void addAdditionalStoreFromLocation(String location, ExtendedPKIXParameters pkixParams)(Code)(Java Doc)
protected static void addAdditionalStoresFromCRLDistributionPoint(CRLDistPoint crldp, ExtendedPKIXParameters pkixParams) throws AnnotatedException(Code)(Java Doc)
final protected static Collection findCRLs(X509CRLSelector crlSelect, List crlStores) throws AnnotatedException(Code)(Java Doc)
final protected static Collection findCRLs(X509CRLStoreSelector crlSelect, List crlStores) throws AnnotatedException(Code)(Java Doc)
protected static Collection findCertificates(CertSelector certSelect, List certStores) throws AnnotatedException(Code)(Java Doc)
protected static Collection findCertificates(Selector certSelect, List certStores) throws AnnotatedException(Code)(Java Doc)
final protected static TrustAnchor findTrustAnchor(X509Certificate cert, CertPath certPath, int index, Set trustAnchors) throws CertPathValidatorException(Code)(Java Doc)
protected static AlgorithmIdentifier getAlgorithmIdentifier(PublicKey key) throws CertPathValidatorException(Code)(Java Doc)
protected static void getCRLIssuersFromDistributionPoint(DistributionPoint dp, Collection issuerPrincipals, X509CRLStoreSelector selector, ExtendedPKIXParameters pkixParams) throws AnnotatedException(Code)(Java Doc)
protected static void getCertStatus(Date validDate, X509CRL crl, BigInteger serialNumber, CertStatus certStatus) throws AnnotatedException(Code)(Java Doc)
protected static Set getCompleteCRLs(DistributionPoint dp, Object cert, Date currentDate, ExtendedPKIXParameters paramsPKIX) throws AnnotatedException(Code)(Java Doc)
protected static Set getDeltaCRLs(Date currentDate, ExtendedPKIXParameters paramsPKIX, X509CRL completeCRL) throws AnnotatedException(Code)(Java Doc)
protected static X500Principal getEncodedIssuerPrincipal(Object cert)(Code)(Java Doc)
protected static DERObject getExtensionValue(java.security.cert.X509Extension ext, String oid) throws AnnotatedException(Code)(Java Doc)
protected static X500Principal getIssuerPrincipal(X509CRL crl)(Code)(Java Doc)
protected static PublicKey getNextWorkingKey(X509Certificate cert, List certs, int index) throws CertPathValidatorException(Code)(Java Doc)
final protected static Set getQualifierSet(ASN1Sequence qualifiers) throws CertPathValidatorException(Code)(Java Doc)
protected static X500Principal getSubjectPrincipal(X509Certificate cert)(Code)(Java Doc)
protected static Date getValidCertDateFromValidityModel(ExtendedPKIXParameters paramsPKIX, CertPath certPath, int index) throws AnnotatedException(Code)(Java Doc)
protected static Date getValidDate(PKIXParameters paramsPKIX)(Code)(Java Doc)
protected static boolean isAnyPolicy(Set policySet)(Code)(Java Doc)
protected static boolean isSelfIssued(X509Certificate cert)(Code)(Java Doc)
protected static void prepareNextCertB1(int i, List[] policyNodes, String id_p, Map m_idp, X509Certificate cert) throws AnnotatedException, CertPathValidatorException(Code)(Java Doc)
protected static PKIXPolicyNode prepareNextCertB2(int i, List[] policyNodes, String id_p, PKIXPolicyNode validPolicyTree)(Code)(Java Doc)
protected static boolean processCertD1i(int index, List[] policyNodes, DERObjectIdentifier pOid, Set pq)(Code)(Java Doc)
protected static void processCertD1ii(int index, List[] policyNodes, DERObjectIdentifier _poid, Set _pq)(Code)(Java Doc)
protected static PKIXPolicyNode removePolicyNode(PKIXPolicyNode validPolicyTree, List[] policyNodes, PKIXPolicyNode _node)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.