org.nhindirect.stagent.cert
Class CertCacheFactory

java.lang.Object
  extended by org.nhindirect.stagent.cert.CertCacheFactory

public class CertCacheFactory
extends Object

Factory class for creating instances of JCS based certificate caches. Caches are keyed by name (case sensitive).
The factory implements a singleton pattern for both the factory itself and named caches.

Since:
1.3
Author:
Greg Meyer

Method Summary
 void flushAll()
           
 org.apache.jcs.JCS getCertCache(String cacheName, CertStoreCachePolicy cachePolicy)
          Retrieves a cert cache by name.
static CertCacheFactory getInstance()
          Gets the instance of the cache factory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CertCacheFactory getInstance()
Gets the instance of the cache factory.

Returns:
The cache factory.

getCertCache

public org.apache.jcs.JCS getCertCache(String cacheName,
                                       CertStoreCachePolicy cachePolicy)
                                throws org.apache.jcs.access.exception.CacheException
Retrieves a cert cache by name. Caches are created using a singleton pattern meaning one and only once instance of a cache for a given name is ever created.

Parameters:
cacheName - The name of the cache to retrieve.
cachePolicy - Policy to apply to the cache
Returns:
The certificate cache for the given cache name.
Throws:
org.apache.jcs.access.exception.CacheException - Thrown if the cache cannot be created.

flushAll

public void flushAll()


Copyright © 2010-2014 NHIN Direct. All Rights Reserved.