) throws WSSecurityException {
// Validate SAML Response against schemas
ValidatorSuite schemaValidators =
org.opensaml.Configuration.getValidatorSuite("saml2-core-schema-validator");
try {
schemaValidators.validate(samlResponse);
} catch (ValidationException e) {
LOG.log(Level.FINE, "Saml Validation error: " + e.getMessage(), e);
throw new WSSecurityException(WSSecurityException.FAILURE, "invalidSAMLsecurity");
}
}