Package eu.emi.security.authn.x509.impl
Class ValidatorParams
- java.lang.Object
-
- eu.emi.security.authn.x509.impl.ValidatorParams
-
- Direct Known Subclasses:
ValidatorParamsExt
public class ValidatorParams extends java.lang.Object
Contains parameters common for allX509CertChainValidator
implementations.- Author:
- K. Benedyczak
-
-
Field Summary
Fields Modifier and Type Field Description protected ProxySupport
allowProxy
static ProxySupport
DEFAULT_PROXY_SUPPORT
protected java.util.Collection<? extends StoreUpdateListener>
initialListeners
protected RevocationParameters
revocationSettings
-
Constructor Summary
Constructors Constructor Description 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 listenersValidatorParams(RevocationParameters revocationSettings, ProxySupport allowProxy, java.util.Collection<? extends StoreUpdateListener> initialListeners)
Full version, allows for setting all parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<? extends StoreUpdateListener>
getInitialListeners()
RevocationParameters
getRevocationSettings()
ProxySupport
isAllowProxy()
void
setAllowProxy(ProxySupport allowProxy)
void
setInitialListeners(java.util.Collection<? extends StoreUpdateListener> initialListeners)
void
setRevocationSettings(RevocationParameters revocationSettings)
-
-
-
Field Detail
-
DEFAULT_PROXY_SUPPORT
public static final ProxySupport DEFAULT_PROXY_SUPPORT
-
allowProxy
protected ProxySupport allowProxy
-
initialListeners
protected java.util.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 settingsallowProxy
- whether to allow proxies
-
ValidatorParams
public ValidatorParams(RevocationParameters revocationSettings, ProxySupport allowProxy, java.util.Collection<? extends StoreUpdateListener> initialListeners)
Full version, allows for setting all parameters.- Parameters:
revocationSettings
- desired revocation settingsallowProxy
- whether to allow proxiesinitialListeners
- 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 java.util.Collection<? extends StoreUpdateListener> getInitialListeners()
- Returns:
- collection of initial listeners of trust store updates
-
setInitialListeners
public void setInitialListeners(java.util.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
-
-