| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--iaik.x509.ChainVerifier
        |
        +--iaik.x509.SimpleChainVerifier
This class allows you to verify certificate chains. It builds on the
 ChainVerifier class which provides the
 cryptographic foundation and adds to it a simple trust mechanism. Each
 object internally maintains a list of trusted certificates (user certificates
 or CA certificates) in a Hashtable.
 See the superclass documentation for more information about the handling
 of trusted certificates by the verifyChain method.
 
 To use it, first create a SimpleChainVerifier object and then add trusted
 certificates by means of the addTrustedCertificate or setTrustedCertificates methods. Then call verifyChain for any certificate chain you want to verify. Note that you can also
 use this class without any trusted certificates purely to verify a chain
 cryptographically. Simply call verifyChain without trusted certificates, it will then return false for cryptographically
 valid chains and throw a CertificateException for bad chains (broken, expired, etc.)
| Field Summary | |
protected  Hashtable | 
signers
A Hashtable holding the X.509 Certificates of the trusted signers.  | 
| Constructor Summary | |
SimpleChainVerifier()
Creates a new SimpleChainVerifier.  | 
|
| Method Summary | |
 void | 
addTrustedCertificate(X509Certificate certificate)
Add a trusted certificate.  | 
 boolean | 
isTrustedCertificate(X509Certificate cert)
Checks whether a given certificate is marked as trusted.  | 
 X509Certificate | 
removeTrustedCertificate(X509Certificate certificate)
Remove a certificate from the list of trusted certificates.  | 
 void | 
setTrustedCertificates(X509Certificate[] certificateList)
Sets the certificates to be trusted.  | 
 Enumeration | 
trustedCertificates()
Returns the enumeration of the currently trusted certificates.  | 
| Methods inherited from class iaik.x509.ChainVerifier | 
checkExtensions, orderCertificateChain, verifyChain, verifyChain | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected Hashtable signers
| Constructor Detail | 
public SimpleChainVerifier()
| Method Detail | 
public boolean isTrustedCertificate(X509Certificate cert)
                             throws CertificateException
isTrustedCertificate in class ChainVerifiercert - the certificate to be checkedtrue if the given cert is trusted, false otherwiseCertificateException - never thrown by this method; only declared because
                                 also declared in super classpublic Enumeration trustedCertificates()
public void setTrustedCertificates(X509Certificate[] certificateList)
certificateList - the list of trusted certificatespublic void addTrustedCertificate(X509Certificate certificate)
certificate - the certificate to be marked as trustedpublic X509Certificate removeTrustedCertificate(X509Certificate certificate)
certificate - the certificate to no longer be marked as trusted
  | 
This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note). | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
  IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK