protected SignatureSecurityPolicyRule signatureBuilder() {
final SignatureSecurityPolicyRule signatureSecurityPolicyRule = new SignatureSecurityPolicyRule(new SAMLSignatureProfileValidator());
signatureSecurityPolicyRule.setCredentialResolver(keyStoreCredentialResolver());
try {
signatureSecurityPolicyRule.afterPropertiesSet();
} catch (Exception e) {
throw new RuntimeException(e);
}
return signatureSecurityPolicyRule;
}