|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.transport.certificatevalidation.ocsp.OCSPCache
public class OCSPCache
This is a cache to store OSCP responses against Certificate Serial Number since an OCSP response depends on the certificate. This is a singleton since more than one cache of this kind should not be allowed. This cache can be shared by many transports which need SSL validation through OCSP.
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 ManageableCachepublic int getCacheSize()
getCacheSize in interface ManageableCachepublic void resetIterator()
resetIterator in interface ManageableCachepublic 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||