Package eu.emi.security.authn.x509.impl
Class CRLParameters
- java.lang.Object
-
- eu.emi.security.authn.x509.impl.CRLParameters
-
- All Implemented Interfaces:
Serializable,Cloneable,CertStoreParameters
public class CRLParameters extends Object implements CertStoreParameters, Serializable
Manages configuration of CRL sources, used in non-openssl truststores.- Author:
- K. Benedyczak
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CRLParameters()Default constructor uses standard CRL parameters: no CRLs are defined, no disk cache, no CRLs updates.CRLParameters(List<String> crls, long crlUpdateInterval, int remoteConnectionTimeout, String diskCachePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CRLParametersclone()List<String>getCrls()longgetCrlUpdateInterval()StringgetDiskCachePath()intgetRemoteConnectionTimeout()voidsetCrls(List<String> crls)voidsetCrlUpdateInterval(long crlUpdateInterval)voidsetDiskCachePath(String diskCachePath)voidsetRemoteConnectionTimeout(int remoteConnectionTimeout)
-
-
-
Constructor Detail
-
CRLParameters
public CRLParameters(List<String> crls, long crlUpdateInterval, int remoteConnectionTimeout, String diskCachePath)
- Parameters:
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.
-
CRLParameters
public CRLParameters()
Default constructor uses standard CRL parameters: no CRLs are defined, no disk cache, no CRLs updates.
-
-
Method Detail
-
clone
public CRLParameters clone()
- Specified by:
clonein interfaceCertStoreParameters- Overrides:
clonein classObject
-
getDiskCachePath
public String getDiskCachePath()
-
setDiskCachePath
public void setDiskCachePath(String diskCachePath)
-
getRemoteConnectionTimeout
public int getRemoteConnectionTimeout()
-
setRemoteConnectionTimeout
public void setRemoteConnectionTimeout(int remoteConnectionTimeout)
-
getCrlUpdateInterval
public long getCrlUpdateInterval()
-
setCrlUpdateInterval
public void setCrlUpdateInterval(long crlUpdateInterval)
-
-