public final class CertificatesCache
extends java.lang.Object
Class that represents the certificates validation responses cache for @Firma certificates validation web service.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
get(CertificateCacheKey key)
Method that retrieves from the certificates validation responses cache the response XML for certain certificate.
|
static CertificatesCache |
getInstance(java.lang.String idClient)
Method that obtains the unique instance of the class.
|
boolean |
put(CertificateCacheKey key,
java.lang.String xmlResponse)
Method that adds/updates an element into the certificates validation responses cache.
|
public static CertificatesCache getInstance(java.lang.String idClient) throws WSServiceInvokerException
idClient - Parameter that represents the client application identifier.WSServiceInvokerException - If there is an error.public boolean put(CertificateCacheKey key, java.lang.String xmlResponse)
key - Parameter that represents the key of the element to add/update. This key is the issuer and the serial number of the certificate.xmlResponse - Parameter that represents the XML with the certificate validation response from @Firma.public java.lang.String get(CertificateCacheKey key)
key - Parameter that represents the key (issuer and serial number) for the certificates validation responses cache.