Class CertCache
java.lang.Object
org.apache.synapse.transport.certificatevalidation.cache.CertCache
- All Implemented Interfaces:
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
Modifier and TypeMethodDescriptionstatic CertCachegetCache()intgetCacheValue(String serialNumber) voidremoveCacheValue(String serialNumber) static voidvoidvoidsetCacheValue(String serialNumber, X509Certificate cert)
-
Method Details
-
getCache
-
getCacheValue
-
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
-
removeCacheValue
-