Package eu.emi.security.authn.x509.impl
Class RevocationParametersExt
- java.lang.Object
-
- eu.emi.security.authn.x509.RevocationParameters
-
- eu.emi.security.authn.x509.impl.RevocationParametersExt
-
- All Implemented Interfaces:
java.lang.Cloneable
public class RevocationParametersExt extends RevocationParameters implements java.lang.Cloneable
Manages configuration of revocation settings, used in non-openssl truststores. Currently differs only in case of richer CRL sources settings; OCSP settings are the same as in case of baseRevocationParameters
.- Author:
- K. Benedyczak
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class eu.emi.security.authn.x509.RevocationParameters
RevocationParameters.RevocationCheckingOrder
-
-
Field Summary
Fields Modifier and Type Field Description protected CRLParameters
crlParameters
static RevocationParametersExt
IGNORE
Constant which can be used to simply turn off any revocation checking.-
Fields inherited from class eu.emi.security.authn.x509.RevocationParameters
crlCheckingMode, ocspParameters, order, useAllEnabled
-
-
Constructor Summary
Constructors Constructor Description RevocationParametersExt()
Default constructor, uses default settings of CRLs and OCSP (seeRevocationParameters()
andCRLParameters()
).RevocationParametersExt(CrlCheckingMode crlCheckingMode, CRLParameters crlParameters)
Deprecated.RevocationParametersExt(CrlCheckingMode crlCheckingMode, CRLParameters crlParameters, OCSPParametes ocspParametes)
Constructor allowing to set CRL checking mode and all OCSP settings.RevocationParametersExt(CrlCheckingMode crlCheckingMode, CRLParameters crlParameters, OCSPParametes ocspParametes, boolean useAllEnabled, RevocationParameters.RevocationCheckingOrder order)
Full fledged constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RevocationParametersExt
clone()
Clone the instanceCRLParameters
getCrlParameters()
Returns CRL parametersvoid
setCrlParameters(CRLParameters crlParameters)
Sets CRL parameters to be used.-
Methods inherited from class eu.emi.security.authn.x509.RevocationParameters
getCrlCheckingMode, getOcspParameters, getOrder, isUseAllEnabled, setCrlCheckingMode, setOcspParameters, setOrder, setUseAllEnabled
-
-
-
-
Field Detail
-
IGNORE
public static final RevocationParametersExt IGNORE
Constant which can be used to simply turn off any revocation checking.
-
crlParameters
protected CRLParameters crlParameters
-
-
Constructor Detail
-
RevocationParametersExt
public RevocationParametersExt()
Default constructor, uses default settings of CRLs and OCSP (seeRevocationParameters()
andCRLParameters()
).
-
RevocationParametersExt
@Deprecated public RevocationParametersExt(CrlCheckingMode crlCheckingMode, CRLParameters crlParameters)
Deprecated.Constructor allowing to set CRL checking mode and all OCSP settings. Default values for overall revocation checking are used, seeRevocationParameters(CrlCheckingMode, OCSPParametes)
- Parameters:
crlCheckingMode
- CRL modecrlParameters
- additional CRL sources and settings
-
RevocationParametersExt
public RevocationParametersExt(CrlCheckingMode crlCheckingMode, CRLParameters crlParameters, OCSPParametes ocspParametes)
Constructor allowing to set CRL checking mode and all OCSP settings. Default values for overall revocation checking are used, seeRevocationParameters(CrlCheckingMode, OCSPParametes)
- Parameters:
crlCheckingMode
- CRL modecrlParameters
- additional CRL sources and settingsocspParametes
- OCSP settings
-
RevocationParametersExt
public RevocationParametersExt(CrlCheckingMode crlCheckingMode, CRLParameters crlParameters, OCSPParametes ocspParametes, boolean useAllEnabled, RevocationParameters.RevocationCheckingOrder order)
Full fledged constructor.- Parameters:
crlCheckingMode
- CRL modecrlParameters
- additional CRL sources and settingsocspParametes
- OCSP settingsuseAllEnabled
- useful only if more then one revocation method is enabled. If this parameter is true then all enabled revocation sources are tried, even if the first one returns that certificate is valid.order
- in what order the configured revocations methods should be tried. Significant only if more then one source is enabled.
-
-
Method Detail
-
getCrlParameters
public CRLParameters getCrlParameters()
Returns CRL parameters- Returns:
- CRL parameters
-
setCrlParameters
public void setCrlParameters(CRLParameters crlParameters)
Sets CRL parameters to be used.- Parameters:
crlParameters
- CRL parameters to be used
-
clone
public RevocationParametersExt clone()
Description copied from class:RevocationParameters
Clone the instance- Overrides:
clone
in classRevocationParameters
-
-