Class: CertificateCache

CertificateCache

new CertificateCache()

A CertificateCache is used to save other users' certificate during verification.
Source:

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.
Source:

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.
Source:
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.
Source:

reset()

Clear all certificates from the store.
Source: