|
|
Choosing A Webhost: |
Re: [WSS4J] client handler chaining with different actors: msg#00209apache.webservices.fx.devel
Werner, Here's the diff of my patch. Can you please review it: cvs -d :pserver:anoncvs-mOiJ8QL+g30uJ1f4ENuQhw@xxxxxxxxxxxxxxxx:/home/cvspublic diff -u cvs server: Diffing . cvs server: Diffing org cvs server: Diffing org/apache cvs server: Diffing org/apache/ws cvs server: Diffing org/apache/ws/axis cvs server: Diffing org/apache/ws/axis/security cvs server: Diffing org/apache/ws/axis/security/conversation cvs server: Diffing org/apache/ws/axis/security/saml cvs server: Diffing org/apache/ws/axis/security/trust cvs server: Diffing org/apache/ws/axis/security/util cvs server: Diffing org/apache/ws/security cvs server: Diffing org/apache/ws/security/components cvs server: Diffing org/apache/ws/security/components/crypto cvs server: Diffing org/apache/ws/security/conversation cvs server: Diffing org/apache/ws/security/conversation/dkAlgo cvs server: Diffing org/apache/ws/security/conversation/message cvs server: Diffing org/apache/ws/security/conversation/message/info cvs server: Diffing org/apache/ws/security/conversation/message/token cvs server: Diffing org/apache/ws/security/conversation/sessions cvs server: Diffing org/apache/ws/security/handler cvs server: Diffing org/apache/ws/security/message Index: org/apache/ws/security/message/WSBaseMessage.java =================================================================== RCS file: /home/cvspublic/ws-fx/wss4j/src/org/apache/ws/security/message/WSBaseMessage.java,v retrieving revision 1.12 diff -u -r1.12 WSBaseMessage.java --- org/apache/ws/security/message/WSBaseMessage.java 9 Aug 2004 17:53:45 -0000 1.12 +++ org/apache/ws/security/message/WSBaseMessage.java 26 Aug 2004 08:56:41 -0000 @@ -254,6 +254,7 @@ WSSecurityUtil.findWsseSecurityHeaderBlock(wssConfig, doc, doc.getDocumentElement(), + actor, true); String soapPrefix = cvs server: Diffing org/apache/ws/security/message/token cvs server: Diffing org/apache/ws/security/saml cvs server: Diffing org/apache/ws/security/transform cvs server: Diffing org/apache/ws/security/trust cvs server: Diffing org/apache/ws/security/trust/issue cvs server: Diffing org/apache/ws/security/trust/message cvs server: Diffing org/apache/ws/security/trust/message/Info cvs server: Diffing org/apache/ws/security/trust/message/token cvs server: Diffing org/apache/ws/security/trust/renew cvs server: Diffing org/apache/ws/security/trust/request cvs server: Diffing org/apache/ws/security/trust/validate cvs server: Diffing org/apache/ws/security/trust/verify cvs server: Diffing org/apache/ws/security/trust2 cvs server: Diffing org/apache/ws/security/trust2/exception cvs server: Diffing org/apache/ws/security/trust2/samples cvs server: Diffing org/apache/ws/security/trust2/serialization cvs server: Diffing org/apache/ws/security/util Index: org/apache/ws/security/util/WSSecurityUtil.java =================================================================== RCS file: /home/cvspublic/ws-fx/wss4j/src/org/apache/ws/security/util/WSSecurityUtil.java,v retrieving revision 1.20 diff -u -r1.20 WSSecurityUtil.java --- org/apache/ws/security/util/WSSecurityUtil.java 9 Aug 2004 17:53:47 -0000 1.20 +++ org/apache/ws/security/util/WSSecurityUtil.java 26 Aug 2004 08:56:41 -0000 @@ -651,7 +651,7 @@ } /** - * find the ws-security header block + * find the first ws-security header block * <p/> * * @param doc @@ -660,24 +660,35 @@ * @return */ public static Element findWsseSecurityHeaderBlock(WSSConfig wssConfig, Document doc, Element envelope, boolean doCreate) { + return findWsseSecurityHeaderBlock(wssConfig, doc, envelope, null, doCreate); + } + + /** + * find a ws-security header block for a given actor + * <p/> + * + * @param doc + * @param envelope + * @param actor + * @param doCreate + * @return + */ + public static Element findWsseSecurityHeaderBlock(WSSConfig wssConfig, + Document doc, + Element envelope, + String actor, + boolean doCreate) { SOAPConstants sc = getSOAPConstants(envelope); + Element wsseSecurity = getSecurityHeader(wssConfig, doc, actor, sc); + if (wsseSecurity != null) { + return wsseSecurity; + } Element header = findChildElement(envelope, sc.getEnvelopeURI(), sc.getHeaderQName().getLocalPart()); if (header == null) { if (doCreate) { header = createElementInSameNamespace(envelope, sc.getHeaderQName().getLocalPart()); header = prependChildElement(doc, envelope, header, true); } - } - Element wsseSecurity = null; - if (wssConfig.getProcessNonCompliantMessages()) { - for (int i = 0; wsseSecurity == null && i < WSConstants.WSSE_NS_ARRAY.length; ++i) { - wsseSecurity = findChildElement(header, WSConstants.WSSE_NS_ARRAY[i], "Security"); - } - } else { - wsseSecurity = findChildElement(header, wssConfig.getWsseNS(), "Security"); - } - if (wsseSecurity != null) { - return wsseSecurity; } if (doCreate) { wsseSecurity = header.getOwnerDocument().createElementNS(wssConfig.getWsseNS(), "wsse:Security"); Regards, Yves Werner Dittmann wrote: Yes,
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [WSS4J] help : latest CVS source doesnt' compile, Yves Langisch |
|---|---|
| Next by Date: | Re: [PATCH] : STSAgent WS-Trust, Mehran Ahsant |
| Previous by Thread: | Re: [WSS4J] client handler chaining with different actors, Yves Langisch |
| Next by Thread: | Re: [WSS4J] client handler chaining with different actors, Yves Langisch |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |