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

java.lang.Object
  extended by eu.emi.security.authn.x509.impl.ValidatorParams
Direct Known Subclasses:
ValidatorParamsExt

public class ValidatorParams
extends Object

Contains parameters common for all X509CertChainValidator implementations.

Author:
K. Benedyczak

Field Summary
protected  ProxySupport allowProxy
           
static ProxySupport DEFAULT_PROXY_SUPPORT
           
protected  Collection<? extends StoreUpdateListener> initialListeners
           
protected  RevocationParameters revocationSettings
           
 
Constructor Summary
ValidatorParams()
          Default constructor: proxies are allowed, no initial update listeners, default revocation settings.
ValidatorParams(RevocationParameters revocationSettings, ProxySupport allowProxy)
          Allows for setting all parameters except the list of initial listeners
ValidatorParams(RevocationParameters revocationSettings, ProxySupport allowProxy, Collection<? extends StoreUpdateListener> initialListeners)
          Full version, allows for setting all parameters.
 
Method Summary
 Collection<? extends StoreUpdateListener> getInitialListeners()
           
 RevocationParameters getRevocationSettings()
           
 ProxySupport isAllowProxy()
           
 void setAllowProxy(ProxySupport allowProxy)
           
 void setInitialListeners(Collection<? extends StoreUpdateListener> initialListeners)
           
 void setRevocationSettings(RevocationParameters revocationSettings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PROXY_SUPPORT

public static final ProxySupport DEFAULT_PROXY_SUPPORT

allowProxy

protected ProxySupport allowProxy

initialListeners

protected Collection<? extends StoreUpdateListener> initialListeners

revocationSettings

protected RevocationParameters revocationSettings
Constructor Detail

ValidatorParams

public ValidatorParams()
Default constructor: proxies are allowed, no initial update listeners, default revocation settings.


ValidatorParams

public ValidatorParams(RevocationParameters revocationSettings,
                       ProxySupport allowProxy)
Allows for setting all parameters except the list of initial listeners

Parameters:
revocationSettings - desired revocation settings
allowProxy - whether to allow proxies

ValidatorParams

public ValidatorParams(RevocationParameters revocationSettings,
                       ProxySupport allowProxy,
                       Collection<? extends StoreUpdateListener> initialListeners)
Full version, allows for setting all parameters.

Parameters:
revocationSettings - desired revocation settings
allowProxy - whether to allow proxies
initialListeners - initial trust store update listeners
Method Detail

isAllowProxy

public ProxySupport isAllowProxy()
Returns:
whether to allow proxy certificates during validation

setAllowProxy

public void setAllowProxy(ProxySupport allowProxy)
Parameters:
allowProxy - whether to allow proxy certificates during validation

getInitialListeners

public Collection<? extends StoreUpdateListener> getInitialListeners()
Returns:
collection of initial listeners of trust store updates

setInitialListeners

public void setInitialListeners(Collection<? extends StoreUpdateListener> initialListeners)
Parameters:
initialListeners - collection of initial listeners of trust store updates

getRevocationSettings

public RevocationParameters getRevocationSettings()
Returns:
revocation checking settings

setRevocationSettings

public void setRevocationSettings(RevocationParameters revocationSettings)
Parameters:
revocationSettings - revocation checking settings


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