public class OCSPResponsesCache extends OCSPCacheBase
ASCII, diskPath, maxTtl, prefix
Constructor and Description |
---|
OCSPResponsesCache(long maxTtl,
File diskPath,
String prefix) |
Modifier and Type | Method and Description |
---|---|
void |
addToCache(String key,
OCSPResponseStructure fullResp,
SingleResp singleResp) |
void |
clearMemoryCache() |
String |
createResponseKey(X509Certificate toCheckCert,
X509Certificate issuerCert) |
SingleResp |
getCachedResp(String responseKey,
OCSPClientImpl client,
X509Certificate toCheckCert,
X509Certificate issuerCert) |
encodeDigest
public OCSPResponsesCache(long maxTtl, File diskPath, String prefix)
maxTtl
- maximum time after each cached response expires. Negative for no cache at all, 0 for no limit
(i.e. caching time will be only controlled by the OCSP response validity period). In ms.diskPath
- if not null, cached responses will be stored on disk.prefix
- used if disk cache is enabled, as a common prefix for all files created in the cache directory.public SingleResp getCachedResp(String responseKey, OCSPClientImpl client, X509Certificate toCheckCert, X509Certificate issuerCert) throws IOException
responseKey
- client
- toCheckCert
- issuerCert
- IOException
public String createResponseKey(X509Certificate toCheckCert, X509Certificate issuerCert)
public void addToCache(String key, OCSPResponseStructure fullResp, SingleResp singleResp) throws IOException
IOException
public void clearMemoryCache()
Copyright © 2012-2014 European Middleware Initiative. All Rights Reserved.