public class OCSPCache extends Object implements ManageableCache
Modifier and Type | Method and Description |
---|---|
static OCSPCache |
getCache() |
int |
getCacheSize() |
org.bouncycastle.ocsp.SingleResp |
getCacheValue(BigInteger serialNumber) |
ManageableCacheValue |
getNextCacheValue()
This method is needed by the cache Manager to go through the cache entries to remove invalid values or
to remove LRU cache values if the cache has reached its max size.
|
void |
init(int size,
int delay)
This lazy initializes the Cache with a CacheManager.
|
void |
removeCacheValue(BigInteger serialNumber) |
void |
resetIterator() |
void |
setCacheValue(BigInteger serialNumber,
org.bouncycastle.ocsp.SingleResp singleResp,
org.bouncycastle.ocsp.OCSPReq request,
String serviceUrl) |
public static OCSPCache getCache()
public void init(int size, int delay)
size
- max size of the cachedelay
- defines how frequently the CacheManager will be startedpublic ManageableCacheValue getNextCacheValue()
getNextCacheValue
in interface ManageableCache
public int getCacheSize()
getCacheSize
in interface ManageableCache
public void resetIterator()
resetIterator
in interface ManageableCache
public org.bouncycastle.ocsp.SingleResp getCacheValue(BigInteger serialNumber)
public void setCacheValue(BigInteger serialNumber, org.bouncycastle.ocsp.SingleResp singleResp, org.bouncycastle.ocsp.OCSPReq request, String serviceUrl)
public void removeCacheValue(BigInteger serialNumber)
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.