public class CRLParameters
extends java.lang.Object
implements java.security.cert.CertStoreParameters, java.io.Serializable
Constructor and Description |
---|
CRLParameters()
Default constructor uses standard CRL parameters: no CRLs are defined,
no disk cache, no CRLs updates.
|
CRLParameters(java.util.List<java.lang.String> crls,
long crlUpdateInterval,
int remoteConnectionTimeout,
java.lang.String diskCachePath) |
Modifier and Type | Method and Description |
---|---|
CRLParameters |
clone() |
java.util.List<java.lang.String> |
getCrls() |
long |
getCrlUpdateInterval() |
java.lang.String |
getDiskCachePath() |
int |
getRemoteConnectionTimeout() |
void |
setCrls(java.util.List<java.lang.String> crls) |
void |
setCrlUpdateInterval(long crlUpdateInterval) |
void |
setDiskCachePath(java.lang.String diskCachePath) |
void |
setRemoteConnectionTimeout(int remoteConnectionTimeout) |
public CRLParameters(java.util.List<java.lang.String> crls, long crlUpdateInterval, int remoteConnectionTimeout, java.lang.String diskCachePath)
crls
- the mandatory list of CRLs. May be empty.crlUpdateInterval
- if <=0 value is passed then CRLs are loaded only once.
Otherwise it is a time expressed in milliseconds between subsequent CRL updates, as
measured between the end of the last update and the start of the next.remoteConnectionTimeout
- timeout in milliseconds of the connection and
reading of the remote CRLs. 0 is treated as infinitive number.diskCachePath
- path to a directory where downloaded CRLs are temporarily stored.
CRLs from cache will be used even if subsequent updates are failing. null disables caching.public CRLParameters()
public CRLParameters clone()
clone
in interface java.security.cert.CertStoreParameters
clone
in class java.lang.Object
public java.lang.String getDiskCachePath()
public void setDiskCachePath(java.lang.String diskCachePath)
public int getRemoteConnectionTimeout()
public void setRemoteConnectionTimeout(int remoteConnectionTimeout)
public java.util.List<java.lang.String> getCrls()
public void setCrls(java.util.List<java.lang.String> crls)
public long getCrlUpdateInterval()
public void setCrlUpdateInterval(long crlUpdateInterval)