Package org.apache.ws.security.message

Examples of org.apache.ws.security.message.WSSAddSAMLToken.build()


        WSSAddSAMLToken wsSign = new WSSAddSAMLToken();

        Document doc = unsignedEnvelope.getAsDocument();
        log.info("Before SAMLUnsignedSenderVouches....");
       
        Document signedDoc = wsSign.build(doc, assertion);
        log.info("After SAMLUnsignedSenderVouches....");

        /*
         * convert the resulting document into a message first. The toSOAPMessage()
         * method performs the necessary c14n call to properly set up the signed
View Full Code Here


        SAMLIssuer saml = loadSamlIssuer(reqData);
        saml.setUsername(reqData.getUsername());
        SAMLAssertion assertion = saml.newAssertion();

        // add the SAMLAssertion Token to the SOAP Enevelope
        builder.build(doc, assertion);
    }

    protected void performST_SIGNAction(int actionToDo, boolean mu, Document doc, RequestData reqData)
            throws WSSecurityException {
        Crypto crypto = null;
View Full Code Here

        SAMLIssuer saml = loadSamlIssuer(reqData);
        saml.setUsername(reqData.username);
        SAMLAssertion assertion = saml.newAssertion();

        // add the SAMLAssertion Token to the SOAP Enevelope
        builder.build(doc, assertion);
    }

    private void performST_SIGNAction(int actionToDo, boolean mu, Document doc, RequestData reqData)
            throws AxisFault {
        Crypto crypto = null;
View Full Code Here

        WSSAddSAMLToken wsSign = new WSSAddSAMLToken();

        Document doc = unsignedEnvelope.getAsDocument();
        log.info("Before SAMLUnsignedSenderVouches....");
       
        Document signedDoc = wsSign.build(doc, assertion);
        log.info("After SAMLUnsignedSenderVouches....");

        /*
         * convert the resulting document into a message first. The toSOAPMessage()
         * method performs the necessary c14n call to properly set up the signed
View Full Code Here

        WSSAddSAMLToken wsSign = new WSSAddSAMLToken();

        Document doc = unsignedEnvelope.getAsDocument();
        log.info("Before SAMLUnsignedSenderVouches....");
       
        Document signedDoc = wsSign.build(doc, assertion);
        log.info("After SAMLUnsignedSenderVouches....");

        /*
         * convert the resulting document into a message first. The toAxisMessage()
         * method performs the necessary c14n call to properly set up the signed
View Full Code Here

        WSSAddSAMLToken wsSign = new WSSAddSAMLToken();

        Document doc = unsignedEnvelope.getAsDocument();
        log.info("Before SAMLUnsignedSenderVouches....");
       
        Document signedDoc = wsSign.build(doc, assertion);
        log.info("After SAMLUnsignedSenderVouches....");

        /*
         * convert the resulting document into a message first. The toSOAPMessage()
         * method performs the necessary c14n call to properly set up the signed
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.