Examples of preSetUsernameToken()


Examples of org.apache.ws.security.message.WSSAddUsernameToken.preSetUsernameToken()

                WSHandlerConstants.PW_CALLBACK_CLASS,
                WSHandlerConstants.PW_CALLBACK_REF, reqData).getPassword();

        WSSAddUsernameToken builder = new WSSAddUsernameToken(reqData.getActor(), mu);
        builder.setPasswordType(WSConstants.PASSWORD_TEXT);
        builder.preSetUsernameToken(doc, reqData.getUsername(), password);
        builder.addCreated(doc);
        builder.addNonce(doc);

        WSSignEnvelope sign = new WSSignEnvelope(reqData.getActor(), mu);
        if (reqData.getSignatureParts().size() > 0) {
View Full Code Here

Examples of org.apache.ws.security.message.WSSAddUsernameToken.preSetUsernameToken()

        WSHandlerConstants.PW_CALLBACK_CLASS,
        WSHandlerConstants.PW_CALLBACK_REF, reqData).getPassword();

    WSSAddUsernameToken builder = new WSSAddUsernameToken(reqData.actor, mu);
    builder.setPasswordType(WSConstants.PASSWORD_TEXT);
    builder.preSetUsernameToken(doc, reqData.username, password);
    builder.addCreated(doc);
    builder.addNonce(doc);

    WSSignEnvelope sign = new WSSignEnvelope(reqData.actor, mu);
        if (reqData.signatureParts.size() > 0) {
View Full Code Here

Examples of org.apache.ws.security.message.WSSAddUsernameToken.preSetUsernameToken()

        SOAPEnvelope envelope = null;
        Document doc = unsignedEnvelope.getAsDocument();

        WSSAddUsernameToken builder = new WSSAddUsernameToken();
        builder.setPasswordType(WSConstants.PASSWORD_TEXT);
        builder.preSetUsernameToken(doc, "wernerd", "verySecret");
        builder.addCreated(doc);
        builder.addNonce(doc);
       
        WSSignEnvelope sign = new WSSignEnvelope(null, true);
        sign.setUsernameToken(builder);
View Full Code Here

Examples of org.apache.ws.security.message.WSSAddUsernameToken.preSetUsernameToken()

        SOAPEnvelope envelope = null;
        Document doc = unsignedEnvelope.getAsDocument();

        WSSAddUsernameToken builder = new WSSAddUsernameToken();
        builder.setPasswordType(WSConstants.PASSWORD_TEXT);
        builder.preSetUsernameToken(doc, "wernerd", "verySecret");
        builder.addCreated(doc);
        builder.addNonce(doc);
       
        WSSignEnvelope sign = new WSSignEnvelope(null, true);
        sign.setUsernameToken(builder);
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.