public void execute(WSHandler handler, int actionToDo, Document doc, RequestData reqData) throws WSSecurityException { WSSecSAMLToken builder = new WSSecSAMLToken(reqData.getWssConfig()); SAMLIssuer saml = loadSamlIssuer(handler, reqData); AssertionWrapper assertion = saml.newAssertion(); // add the SAMLAssertion Token to the SOAP Envelope builder.build(doc, assertion, reqData.getSecHeader()); } }
public void execute(WSHandler handler, int actionToDo, Document doc, RequestData reqData) throws WSSecurityException { WSSecSAMLToken builder = new WSSecSAMLToken(reqData.getWssConfig()); SAMLIssuer saml = loadSamlIssuer(handler, reqData); AssertionWrapper assertion = saml.newAssertion(); // add the SAMLAssertion Token to the SOAP Envelope builder.build(doc, assertion, reqData.getSecHeader()); } }
AssertionWrapper assertion = saml.newAssertion(); if (assertion == null) { throw new WSSecurityException("WSHandler: Signed SAML: no SAML token received");
AssertionWrapper assertion = saml.newAssertion(); if (assertion == null) { throw new WSSecurityException("WSHandler: Signed SAML: no SAML token received");