public void receiveMessage(final SAMLMessageContext context, final SignatureTrustEngine engine) {
context.setPeerEntityRole(IDPSSODescriptor.DEFAULT_ELEMENT_NAME);
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);