public class CRLCache extends Object implements ManageableCache
Modifier and Type | Method and Description |
---|---|
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) |
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 ManageableCache
public int getCacheSize()
getCacheSize
in interface ManageableCache
public void resetIterator()
resetIterator
in interface ManageableCache
public void removeCacheValue(String crlUrl)
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.