Class CertCache
- java.lang.Object
-
- org.apache.synapse.transport.certificatevalidation.cache.CertCache
-
- All Implemented Interfaces:
ManageableCache
public class CertCache extends Object implements ManageableCache
This is a cache to store a certificate against a unique string (can be a serial number). This is a singleton since more than one cache of this kind should not be allowed. This cache can be used by any place where certificate caching is needed.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CertCachegetCache()intgetCacheSize()X509CertificategetCacheValue(String serialNumber)ManageableCacheValuegetNextCacheValue()voidremoveCacheValue(String serialNumber)static voidresetCache()voidresetIterator()voidsetCacheValue(String serialNumber, X509Certificate cert)
-
-
-
Method Detail
-
getCache
public static CertCache getCache()
-
getCacheValue
public X509Certificate getCacheValue(String serialNumber)
-
getNextCacheValue
public ManageableCacheValue getNextCacheValue()
- Specified by:
getNextCacheValuein interfaceManageableCache
-
getCacheSize
public int getCacheSize()
- Specified by:
getCacheSizein interfaceManageableCache
-
resetIterator
public void resetIterator()
- Specified by:
resetIteratorin interfaceManageableCache
-
resetCache
public static void resetCache()
-
setCacheValue
public void setCacheValue(String serialNumber, X509Certificate cert)
-
removeCacheValue
public void removeCacheValue(String serialNumber)
-
-