org.nhindirect.stagent.cert
Interface CertStoreCachePolicy

All Known Implementing Classes:
DefaultCertStoreCachePolicy

public interface CertStoreCachePolicy

Cache policy setting for a cacheable cert store.

Author:
Greg Meyer

Method Summary
 int getMaxItems()
          The maximum number of items that can be held in the cache.
 int getSubjectTTL()
          The maximum amount of time a subject's certificates can remain in the cache before getting purged.
 

Method Detail

getSubjectTTL

int getSubjectTTL()
The maximum amount of time a subject's certificates can remain in the cache before getting purged. To maintain coherency, this setting is independent of the number of times a cache hit occurs per subject.

Returns:
The maxiumum amount of time in seconds that a subject's certificates will remain in the cache before being purged.

getMaxItems

int getMaxItems()
The maximum number of items that can be held in the cache. Items will be trimmed according to cache policy. By default the policy will purged based on least recently used.

Parameters:
The - maximum number of items that can be held in the cache.


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