eu.emi.security.authn.x509.impl
Class RevocationParametersExt

java.lang.Object
  extended by eu.emi.security.authn.x509.RevocationParameters
      extended by eu.emi.security.authn.x509.impl.RevocationParametersExt
All Implemented Interfaces:
Cloneable

public class RevocationParametersExt
extends RevocationParameters
implements 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
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
RevocationParametersExt()
          Default constructor, uses default settings of CRLs and OCSP (see RevocationParameters.RevocationParameters() and CRLParameters.CRLParameters()).
RevocationParametersExt(CrlCheckingMode crlCheckingMode, CRLParameters crlParameters)
          Deprecated. Use RevocationParametersExt(CrlCheckingMode, CRLParameters, OCSPParametes) instead
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
 RevocationParametersExt clone()
          Clone the instance
 CRLParameters getCrlParameters()
          Returns CRL parameters
 void 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 (see RevocationParameters.RevocationParameters() and CRLParameters.CRLParameters()).


RevocationParametersExt

@Deprecated
public RevocationParametersExt(CrlCheckingMode crlCheckingMode,
                                          CRLParameters crlParameters)
Deprecated. Use RevocationParametersExt(CrlCheckingMode, CRLParameters, OCSPParametes) instead

Constructor allowing to set CRL checking mode and all OCSP settings. Default values for overall revocation checking are used, see RevocationParameters.RevocationParameters(CrlCheckingMode, OCSPParametes)

Parameters:
crlCheckingMode - CRL mode
crlParameters - 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, see RevocationParameters.RevocationParameters(CrlCheckingMode, OCSPParametes)

Parameters:
crlCheckingMode - CRL mode
crlParameters - additional CRL sources and settings
ocspParametes - OCSP settings

RevocationParametersExt

public RevocationParametersExt(CrlCheckingMode crlCheckingMode,
                               CRLParameters crlParameters,
                               OCSPParametes ocspParametes,
                               boolean useAllEnabled,
                               RevocationParameters.RevocationCheckingOrder order)
Full fledged constructor.

Parameters:
crlCheckingMode - CRL mode
crlParameters - additional CRL sources and settings
ocspParametes - OCSP settings
useAllEnabled - 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 class RevocationParameters


Copyright © 2012-2013 European Middleware Initiative. All Rights Reserved.