context.setInboundSAMLProtocol(SAMLConstants.SAML20P_NS);
SecurityPolicy policy = new BasicSecurityPolicy();
policy.getPolicyRules().add(new SAML2HTTPPostSimpleSignRule(engine, parserPool, engine.getKeyInfoResolver()));
policy.getPolicyRules().add(new SAMLProtocolMessageXMLSignatureSecurityPolicyRule(engine));
StaticSecurityPolicyResolver resolver = new StaticSecurityPolicyResolver(policy);
context.setSecurityPolicyResolver(resolver);
try {
decoder.decode(context);
} catch (MessageDecodingException e) {