public class DefaultCertStoreCachePolicy extends Object implements CertStoreCachePolicy
| Constructor and Description |
|---|
DefaultCertStoreCachePolicy()
Constructs a policy with default settings:
MaxItems: 1000
Subject TTL: 1 day
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
setMaxItems(int maxItems)
Sets the maximum number items allowed in the cache.
|
void |
setSubjectTTL(int subjectTTL)
Sets the maximum amount of time a subject will remain in the cache.
|
public DefaultCertStoreCachePolicy()
public int getMaxItems()
getMaxItems in interface CertStoreCachePolicypublic void setMaxItems(int maxItems)
maxItems - The maximum number items allowed in the cache.public void setSubjectTTL(int subjectTTL)
subjectTTL - The maximum amount of time in seconds a subject will remain in the cache.public int getSubjectTTL()
getSubjectTTL in interface CertStoreCachePolicyCopyright © 2010-2016 NHIN Direct. All Rights Reserved.