|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.transport.certificatevalidation.crl.CRLCache
public class CRLCache
Since a CRL maps to a CRL URL, the CRLCache should have x509CRL entries against CRL URLs. This cache is a Singleton since it is shared by any transport which needs SSL certificate validation and more than one CRLCache should not be allowed per system.
| Method Summary | |
|---|---|
static CRLCache |
getCache()
|
int |
getCacheSize()
To get the current cache size (size of the hash map). |
X509CRL |
getCacheValue(String crlUrl)
|
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 initialize the Cache with a CacheManager. |
void |
removeCacheValue(String crlUrl)
|
void |
resetIterator()
|
void |
setCacheValue(String crlUrl,
X509CRL crl)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static CRLCache 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 X509CRL getCacheValue(String crlUrl)
public void setCacheValue(String crlUrl,
X509CRL crl)
public void removeCacheValue(String crlUrl)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||