Package org.apache.ws.security.message

Examples of org.apache.ws.security.message.WSSAddSAMLToken


        SOAPEnvelope envelope = null;
        SAMLIssuer saml = SAMLIssuerFactory.getInstance("saml.properties");

        SAMLAssertion assertion = saml.newAssertion();

        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


        builder.build(doc, null, null);
    }

    protected void performSTAction(int actionToDo, boolean mu, Document doc, RequestData reqData)
            throws WSSecurityException {
        WSSAddSAMLToken builder = new WSSAddSAMLToken(reqData.getActor(), mu);
        SAMLIssuer saml = loadSamlIssuer(reqData);
        saml.setUsername(reqData.getUsername());
        SAMLAssertion assertion = saml.newAssertion();

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

  }


    private void performSTAction(int actionToDo, boolean mu, Document doc, RequestData reqData)
            throws AxisFault {
        WSSAddSAMLToken builder = new WSSAddSAMLToken(reqData.actor, mu);
        SAMLIssuer saml = loadSamlIssuer(reqData);
        saml.setUsername(reqData.username);
        SAMLAssertion assertion = saml.newAssertion();

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

        SOAPEnvelope envelope = null;
        SAMLIssuer saml = SAMLIssuerFactory.getInstance("saml.properties");

        SAMLAssertion assertion = saml.newAssertion();

        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

        SOAPEnvelope unsignedEnvelope = message.getSOAPEnvelope();
        SAMLIssuer saml = SAMLIssuerFactory.getInstance("saml.properties");

        SAMLAssertion assertion = saml.newAssertion();

        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

        SOAPEnvelope envelope = null;
        SAMLIssuer saml = SAMLIssuerFactory.getInstance("saml.properties");

        SAMLAssertion assertion = saml.newAssertion();

        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

Related Classes of org.apache.ws.security.message.WSSAddSAMLToken

Copyright © 2018 www.massapicom. 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.