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() |
Integer |
getIssuerId(org.xipki.ocsp.api.RequestIssuer reqIssuer) |
org.xipki.ocsp.api.OcspRespWithCacheInfo |
getOcspResponse(int issuerId,
BigInteger serialNumber,
org.xipki.security.AlgorithmCode sigAlg) |
void |
init() |
boolean |
isOnService() |
Integer |
storeIssuer(X509Certificate issuerCert) |
void |
storeOcspResponse(int issuerId,
BigInteger serialNumber,
long thisUpdate,
Long nextUpdate,
org.xipki.security.AlgorithmCode sigAlgCode,
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 Integer getIssuerId(org.xipki.ocsp.api.RequestIssuer reqIssuer)
public Integer storeIssuer(X509Certificate issuerCert) throws CertificateException, org.xipki.util.InvalidConfException, org.xipki.datasource.DataAccessException
CertificateExceptionorg.xipki.util.InvalidConfExceptionorg.xipki.datasource.DataAccessExceptionpublic org.xipki.ocsp.api.OcspRespWithCacheInfo getOcspResponse(int issuerId,
BigInteger serialNumber,
org.xipki.security.AlgorithmCode sigAlg)
throws org.xipki.datasource.DataAccessException
org.xipki.datasource.DataAccessExceptionpublic void storeOcspResponse(int issuerId,
BigInteger serialNumber,
long thisUpdate,
Long nextUpdate,
org.xipki.security.AlgorithmCode sigAlgCode,
byte[] response)
Copyright © 2019. All rights reserved.