public class OCSPRespondersCache extends OCSPCacheBase
ASCII, diskPath, maxTtl, prefix| Constructor and Description |
|---|
OCSPRespondersCache(long maxTtl,
java.io.File diskPath,
java.lang.String prefix) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToCache(java.lang.String key,
java.io.IOException error) |
void |
checkCachedError(java.lang.String responderKey)
Checks if there is a cached and not outdated cache entry for a given responder key.
|
void |
clearMemoryCache() |
java.lang.String |
createResponderKey(java.security.cert.X509Certificate issuerCert) |
encodeDigestpublic OCSPRespondersCache(long maxTtl,
java.io.File diskPath,
java.lang.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 void checkCachedError(java.lang.String responderKey)
throws java.io.IOException
responderKey - responder keyjava.io.IOException - IO exceptionpublic void addToCache(java.lang.String key,
java.io.IOException error)
throws java.io.IOException
java.io.IOExceptionpublic void clearMemoryCache()
public java.lang.String createResponderKey(java.security.cert.X509Certificate issuerCert)