use of org.opensaml.xmlsec.signature.support.SignatureValidationParametersCriterion in project cas by apereo.
the class SamlUtils method buildSignatureValidationFilterCriteria.
@SneakyThrows
private static CriteriaSet buildSignatureValidationFilterCriteria() {
val criteriaSet = new CriteriaSet();
val sigConfigs = new ArrayList<SignatureValidationConfiguration>();
sigConfigs.add(SecurityConfigurationSupport.getGlobalSignatureValidationConfiguration());
if (!sigConfigs.isEmpty()) {
val paramsResolver = new BasicSignatureValidationParametersResolver();
val configCriteria = new CriteriaSet(new SignatureValidationConfigurationCriterion(sigConfigs));
val params = paramsResolver.resolveSingle(configCriteria);
if (params != null) {
criteriaSet.add(new SignatureValidationParametersCriterion(params), true);
}
}
return criteriaSet;
}
Aggregations