|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.crypto.RevokedCertifcateStore
public class RevokedCertifcateStore
This class holds all valid certificate revocations to check if a certificate is revoked. Implemented as a singleton.
Field Summary | |
---|---|
private static java.lang.String |
CRL_PATH
the path from which to load the crls |
private static RevokedCertifcateStore |
m_instance
the instance of RevokedCertificateStore |
private java.util.Hashtable |
m_revokedCerts
This table holds all revocations. |
Constructor Summary | |
---|---|
private |
RevokedCertifcateStore()
Create the instance of RevokedCertificateStore. |
Method Summary | |
---|---|
private void |
addRevocations(CertificateRevocationList a_crl)
Adds the revocations of a single crl to the store. |
static RevokedCertifcateStore |
getInstance()
Returns the instance of RevokedCertificateStore (Singleton). |
java.util.Date |
getRevocationDate(JAPCertificate a_cert)
Gets the revocation date for the specified cert, if and only if the cert is revoked. |
boolean |
isCertificateRevoked(JAPCertificate a_cert)
Checks if the given cert is revoked. |
private static java.lang.String |
keyValue(JAPCertificate a_cert)
Creates a concatenation of the certificate's issuer and its (pseudo-)serial. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static RevokedCertifcateStore m_instance
private static final java.lang.String CRL_PATH
private java.util.Hashtable m_revokedCerts
Constructor Detail |
---|
private RevokedCertifcateStore()
Method Detail |
---|
private void addRevocations(CertificateRevocationList a_crl)
a_crl
- the crl to add the revocations frompublic static RevokedCertifcateStore getInstance()
private static java.lang.String keyValue(JAPCertificate a_cert)
a_cert
- the certificate to create the value from
RevokedCertificate.getUniqueSerial()
public boolean isCertificateRevoked(JAPCertificate a_cert)
a_cert
- the cert to check
true
if the store contains a revocation for the cert,
false
otherwisepublic java.util.Date getRevocationDate(JAPCertificate a_cert)
a_cert
- the cert to get the revocation Date from
null
if the store
contains no revocation for the cert
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |