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:
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 base
RevocationParameters
.- Author:
- K. Benedyczak
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.emi.security.authn.x509.RevocationParameters
RevocationParameters.RevocationCheckingOrder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CRLParameters
static final RevocationParametersExt
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
ConstructorsConstructorDescriptionDefault 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
Modifier and TypeMethodDescriptionclone()
Clone the instanceReturns 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 Details
-
IGNORE
Constant which can be used to simply turn off any revocation checking. -
crlParameters
-
-
Constructor Details
-
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 Details
-
getCrlParameters
Returns CRL parameters- Returns:
- CRL parameters
-
setCrlParameters
Sets CRL parameters to be used.- Parameters:
crlParameters
- CRL parameters to be used
-
clone
Description copied from class:RevocationParameters
Clone the instance- Overrides:
clone
in classRevocationParameters
-
RevocationParametersExt(CrlCheckingMode, CRLParameters, OCSPParametes)
instead