public class RevokedCertifcateStore
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
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.
|
| Modifier | Constructor and Description |
|---|---|
private |
RevokedCertifcateStore()
Create the instance of RevokedCertificateStore.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
private static RevokedCertifcateStore m_instance
private static final java.lang.String CRL_PATH
private java.util.Hashtable m_revokedCerts
private RevokedCertifcateStore()
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 fromRevokedCertificate.getUniqueSerial()public boolean isCertificateRevoked(JAPCertificate a_cert)
a_cert - the cert to checktrue 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 fromnull if the store
contains no revocation for the certCopyright © 2023. All rights reserved.