public class ResponseCacher extends Object implements Closeable
| Constructor and Description |
|---|
ResponseCacher(org.xipki.datasource.DataSourceWrapper datasource,
boolean master,
org.xipki.util.Validity validity) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
IssuerEntry |
getIssuer(org.xipki.ocsp.api.RequestIssuer reqIssuer) |
org.xipki.ocsp.api.OcspRespWithCacheInfo |
getOcspResponse(int issuerId,
BigInteger serialNumber,
org.xipki.security.SignAlgo sigAlgo) |
void |
init() |
boolean |
isOnService() |
IssuerEntry |
storeIssuer(org.xipki.security.X509Cert issuerCert) |
void |
storeOcspResponse(int issuerId,
BigInteger serialNumber,
long generatedAt,
Long nextUpdate,
org.xipki.security.SignAlgo sigAlgo,
byte[] response) |
public ResponseCacher(org.xipki.datasource.DataSourceWrapper datasource,
boolean master,
org.xipki.util.Validity validity)
public boolean isOnService()
public void init()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic IssuerEntry getIssuer(org.xipki.ocsp.api.RequestIssuer reqIssuer)
public IssuerEntry storeIssuer(org.xipki.security.X509Cert issuerCert) throws CertificateException, org.xipki.datasource.DataAccessException
CertificateExceptionorg.xipki.datasource.DataAccessExceptionpublic org.xipki.ocsp.api.OcspRespWithCacheInfo getOcspResponse(int issuerId,
BigInteger serialNumber,
org.xipki.security.SignAlgo sigAlgo)
throws org.xipki.datasource.DataAccessException
org.xipki.datasource.DataAccessExceptionpublic void storeOcspResponse(int issuerId,
BigInteger serialNumber,
long generatedAt,
Long nextUpdate,
org.xipki.security.SignAlgo sigAlgo,
byte[] response)
Copyright © 2023. All rights reserved.