Class SignatureValidationCriteriaSetFactoryBean
java.lang.Object
net.shibboleth.idp.profile.spring.relyingparty.metadata.filter.impl.SignatureValidationCriteriaSetFactoryBean
- All Implemented Interfaces:
FactoryBean<CriteriaSet>
public class SignatureValidationCriteriaSetFactoryBean
extends Object
implements FactoryBean<CriteriaSet>
Factory bean impl for producing a
CriteriaSet
instance specialized for signature validation use
cases, such as input to the SignatureValidationFilter
.
The supplied list of SignatureValidationConfiguration
will be resolved into
an instance of SignatureValidationParameters
and returned in the criteria set.
If setIncludeOpenSAMLGlobalConfig(boolean)
is set true (the default), then the OpenSAML global
configuration supplied from SecurityConfigurationSupport.getGlobalSignatureValidationConfiguration()
will be effectively added at the lowest order of precedence.
Resolution will be performed using the supplied instance of SignatureValidationParametersResolver
,
or if not supplied then an instance of BasicSignatureValidationParametersResolver
.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Flag whether to include the OpenSAML global library-wide SignatureValidationConfiguration by default.private org.slf4j.Logger
Logger.private Collection<Criterion>
Other supplied criteria.private List<SignatureValidationConfiguration>
Ordered collection ofSignatureValidationConfiguration
.The optional parameters resolver to use.Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>
boolean
void
setIncludeOpenSAMLGlobalConfig
(boolean flag) Flag whether to effectively include the OpenSAML library-wide default SignatureValidationConfiguration in the list of configurations to process.void
setOtherCriteria
(Collection<Criterion> newCriteria) Other optional criteria to add to the returned set.void
Set the list of signature validation configuration.void
Set the parameters resolver instance to use.
-
Field Details
-
log
@Nonnull private org.slf4j.Logger logLogger. -
signatureValidationConfigs
Ordered collection ofSignatureValidationConfiguration
. -
signatureValidationResolver
The optional parameters resolver to use. -
otherCriteria
Other supplied criteria. -
includeOpenSAMLGlobalConfig
private boolean includeOpenSAMLGlobalConfigFlag whether to include the OpenSAML global library-wide SignatureValidationConfiguration by default.
-
-
Constructor Details
-
SignatureValidationCriteriaSetFactoryBean
public SignatureValidationCriteriaSetFactoryBean()
-
-
Method Details
-
setSignatureValidationConfigurations
public void setSignatureValidationConfigurations(@Nullable List<SignatureValidationConfiguration> newConfigs) Set the list of signature validation configuration.- Parameters:
newConfigs
- the list of configurations
-
setSignatureValidationParametersResolver
public void setSignatureValidationParametersResolver(@Nullable SignatureValidationParametersResolver newResolver) Set the parameters resolver instance to use.If not supplied, an instance of
BasicSignatureValidationParametersResolver
will be used.- Parameters:
newResolver
- the parameters resolver
-
setOtherCriteria
Other optional criteria to add to the returned set.- Parameters:
newCriteria
- the collection of criteria
-
setIncludeOpenSAMLGlobalConfig
public void setIncludeOpenSAMLGlobalConfig(boolean flag) Flag whether to effectively include the OpenSAML library-wide default SignatureValidationConfiguration in the list of configurations to process. If true, the config will be added at the lowest order of precedence.- Parameters:
flag
- the flag value
-
getObjectType
- Specified by:
getObjectType
in interfaceFactoryBean<CriteriaSet>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingleton
in interfaceFactoryBean<CriteriaSet>
-
getObject
- Specified by:
getObject
in interfaceFactoryBean<CriteriaSet>
- Throws:
Exception
-