assertTrue(e.getMessage().contains(mex));
assertEquals(WSSecurityException.ErrorCode.FAILED_CHECK, e.getErrorCode());
}
private RequestData getRequestData(boolean reqSignedEncData) throws WSSecurityException {
RequestData reqData = new RequestData();
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"), reqData);
reqData.setCallbackHandler(callbackHandler);
reqData.setSigVerCrypto(crypto);
reqData.setDecCrypto(crypto);
return reqData;
}