public class RevocationParameters extends Object implements Cloneable
This class controls also the overall revocation checking process, if more then one revocation source is enabled. It is possible to choose which is tried first and whether all enabled sources must be used always (useAllEnabled). For instance, let's assume the default revocation checking order (OCSP, CRL) and that both sources are enabled. Then if OCSP returns that certificate is valid and useAllEnabled is true, also the CRL will be checked. If useAllEnabled is false, then OCSP answer will be sufficient.
Note that regardless of the useAllEnabled setting, if the first source returns that the certificate is revoked, the next one will not be used.
Finally note that the individual revocation sources settings are the most important anyway. For instance if both sources are enabled, but in non-requisite modes, then the whole revocation checking can finish in undetermined state which will be perfectly fine.
RevocationParametersExt
Modifier and Type | Class and Description |
---|---|
static class |
RevocationParameters.RevocationCheckingOrder |
Modifier and Type | Field and Description |
---|---|
protected CrlCheckingMode |
crlCheckingMode |
static RevocationParameters |
IGNORE
Constant which can be used to simply turn off any revocation checking.
|
protected OCSPParametes |
ocspParameters |
protected RevocationParameters.RevocationCheckingOrder |
order |
protected boolean |
useAllEnabled |
Constructor and Description |
---|
RevocationParameters()
Default constructor, using the default
CrlCheckingMode.IF_VALID and default OCSPParametes . |
RevocationParameters(CrlCheckingMode crlCheckingMode)
Deprecated.
|
RevocationParameters(CrlCheckingMode crlCheckingMode,
OCSPParametes ocspParameters)
One positive revocation source is enough to finish validation, order is set to OCSP first, then CRL.
|
RevocationParameters(CrlCheckingMode crlCheckingMode,
OCSPParametes ocspParametes,
boolean useAllEnabled,
RevocationParameters.RevocationCheckingOrder order)
Constructor allowing to control all settings.
|
Modifier and Type | Method and Description |
---|---|
RevocationParameters |
clone()
Clone the instance
|
CrlCheckingMode |
getCrlCheckingMode()
Returns the current CRL settings.
|
OCSPParametes |
getOcspParameters()
Returns the current OCSP settings.
|
RevocationParameters.RevocationCheckingOrder |
getOrder() |
boolean |
isUseAllEnabled() |
void |
setCrlCheckingMode(CrlCheckingMode crlCheckingMode)
Changes CRL settings that shall be used.
|
void |
setOcspParameters(OCSPParametes ocspParametes)
Changes OCSP settings that shall be used.
|
void |
setOrder(RevocationParameters.RevocationCheckingOrder order) |
void |
setUseAllEnabled(boolean useAllEnabled) |
public static final RevocationParameters IGNORE
protected CrlCheckingMode crlCheckingMode
protected OCSPParametes ocspParameters
protected boolean useAllEnabled
protected RevocationParameters.RevocationCheckingOrder order
public RevocationParameters()
CrlCheckingMode.IF_VALID
and default OCSPParametes
.
One positive revocation source is enough to finish validation, order is set to OCSP first, then CRL.public RevocationParameters(CrlCheckingMode crlCheckingMode)
OCSPParametes
One positive revocation source is enough to finish validation, order is set to OCSP first, then CRL.crlCheckingMode
- what CRL settings shall be usedpublic RevocationParameters(CrlCheckingMode crlCheckingMode, OCSPParametes ocspParameters)
crlCheckingMode
- what CRL settings shall be usedocspParameters
- what OCSP settings shall be usedpublic RevocationParameters(CrlCheckingMode crlCheckingMode, OCSPParametes ocspParametes, boolean useAllEnabled, RevocationParameters.RevocationCheckingOrder order)
crlCheckingMode
- what CRL settings shall be usedocspParametes
- what OCSP settings shall be useduseAllEnabled
- 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.public CrlCheckingMode getCrlCheckingMode()
public void setCrlCheckingMode(CrlCheckingMode crlCheckingMode)
crlCheckingMode
- what CRL settings shall be usedpublic OCSPParametes getOcspParameters()
public void setOcspParameters(OCSPParametes ocspParametes)
ocspParametes
- what OCSP settings shall be usedpublic boolean isUseAllEnabled()
public void setUseAllEnabled(boolean useAllEnabled)
useAllEnabled
- the useAllEnabled to setpublic RevocationParameters.RevocationCheckingOrder getOrder()
public void setOrder(RevocationParameters.RevocationCheckingOrder order)
order
- the order to setpublic RevocationParameters clone()
Copyright © 2012-2017 European Middleware Initiative. All Rights Reserved.