Package eu.emi.security.authn.x509.impl
Class ValidatorParams
java.lang.Object
eu.emi.security.authn.x509.impl.ValidatorParams
- Direct Known Subclasses:
ValidatorParamsExt
Contains parameters common for all
X509CertChainValidator
implementations.- Author:
- K. Benedyczak
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ProxySupport
static final ProxySupport
protected Collection<? extends StoreUpdateListener>
protected RevocationParameters
-
Constructor Summary
ConstructorsConstructorDescriptionDefault 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, Collection<? extends StoreUpdateListener> initialListeners) Full version, allows for setting all parameters. -
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends StoreUpdateListener>
void
setAllowProxy
(ProxySupport allowProxy) void
setInitialListeners
(Collection<? extends StoreUpdateListener> initialListeners) void
setRevocationSettings
(RevocationParameters revocationSettings)
-
Field Details
-
DEFAULT_PROXY_SUPPORT
-
allowProxy
-
initialListeners
-
revocationSettings
-
-
Constructor Details
-
ValidatorParams
public ValidatorParams()Default constructor: proxies are allowed, no initial update listeners, default revocation settings. -
ValidatorParams
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, 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 Details
-
isAllowProxy
- Returns:
- whether to allow proxy certificates during validation
-
setAllowProxy
- Parameters:
allowProxy
- whether to allow proxy certificates during validation
-
getInitialListeners
- Returns:
- collection of initial listeners of trust store updates
-
setInitialListeners
- Parameters:
initialListeners
- collection of initial listeners of trust store updates
-
getRevocationSettings
- Returns:
- revocation checking settings
-
setRevocationSettings
- Parameters:
revocationSettings
- revocation checking settings
-