new CertificateCache()
A CertificateCache is used to save other users' certificate during
verification.
Methods
deleteCertificate(certificateName)
Remove a certificate from the cache. This does nothing if it is not present.
Parameters:
Name | Type | Description |
---|---|---|
certificateName |
Name | The name of the certificate to remove. This assumes there is no timestamp in the name. |
getCertificate(certificateName) → {IdentityCertificate}
Fetch a certificate from the cache.
Parameters:
Name | Type | Description |
---|---|---|
certificateName |
Name | The name of the certificate to remove. This assumes there is no timestamp in the name. |
Returns:
A new copy of the IdentityCertificate, or null
if not found.
- Type
- IdentityCertificate
insertCertificate(certificate)
Insert the certificate into the cache. Assumes the timestamp is not yet
removed from the name.
Parameters:
Name | Type | Description |
---|---|---|
certificate |
IdentityCertificate | The certificate to insert. |
reset()
Clear all certificates from the store.