Package org.apache.ws.security.common

Examples of org.apache.ws.security.common.CustomHandler.receive()


        java.util.Map<String, Object> msgContext = new java.util.HashMap<String, Object>();
        msgContext.put(WSHandlerConstants.SIG_PROP_FILE, "crypto.properties");
        reqData.setMsgContext(msgContext);
       
        CustomHandler handler = new CustomHandler();
        handler.receive(WSConstants.ST_SIGNED, reqData);
       
        secEngine.processSecurityHeader(
            signedDoc, null, callbackHandler, reqData.getSigCrypto(), reqData.getDecCrypto()
        );
    }
View Full Code Here


        Map<String, Object> messageContext = new TreeMap<String, Object>();
        messageContext = new java.util.TreeMap<String, Object>();
        messageContext.put(WSHandlerConstants.REQUIRE_SIGNED_ENCRYPTED_DATA_ELEMENTS, Boolean.toString(reqSignedEncData));
        reqData.setMsgContext(messageContext);
        CustomHandler handler = new CustomHandler();
        handler.receive(WSSecurityUtil.decodeAction("Encrypt Signature", new LinkedList<Integer>()), reqData);
        reqData.setCallbackHandler(callbackHandler);
        reqData.setSigCrypto(crypto);
        reqData.setDecCrypto(crypto);
        return reqData;
    }
View Full Code Here

            fail("An error was expected on verifying the signature");
        } catch (Exception ex) {
            // expected
        }
       
        handler.receive(WSConstants.UT_SIGN, reqData);
       
        WSSecurityEngine wss226SecurityEngine = new WSSecurityEngine();
        wss226SecurityEngine.setWssConfig(reqData.getWssConfig());
        wss226SecurityEngine.processSecurityHeader(doc, null, callbackHandler, null);
    }
View Full Code Here

        messageContext = new java.util.TreeMap<String, Object>();
        messageContext.put(WSHandlerConstants.PW_CALLBACK_REF, this);
        reqData.setMsgContext(messageContext);
        reqData.setUsername("");
       
        handler.receive(WSConstants.SIGN, reqData);
       
        secEngine.processSecurityHeader(doc, null, this, null, crypto);
    }
   
   
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.