|
|
Choosing A Webhost: |
cvs commit: ws-fx/wss4j/src/org/apache/ws/security/handler WSS4JHandler.jav: msg#00162apache.webservices.fx.devel
dims 2004/08/17 23:54:46 Modified: wss4j/src/org/apache/ws/security/handler WSS4JHandler.java Log: decode signature parts and set the token type. Revision Changes Path 1.2 +30 -1 ws-fx/wss4j/src/org/apache/ws/security/handler/WSS4JHandler.java Index: WSS4JHandler.java =================================================================== RCS file: /home/cvs/ws-fx/wss4j/src/org/apache/ws/security/handler/WSS4JHandler.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- WSS4JHandler.java 12 Aug 2004 17:42:09 -0000 1.1 +++ WSS4JHandler.java 18 Aug 2004 06:54:45 -0000 1.2 @@ -279,7 +279,6 @@ * may be used for encryption too. */ if ((doAction & WSConstants.SIGN) == WSConstants.SIGN) { - sigCrypto = loadSignatureCrypto(); decodeSignatureParameter(); } /* @@ -962,6 +961,36 @@ * here, but we call the load crypto hook rather than just changing the visibility * of this method to maintain parity with WSS4JHandler. */ + + String tmpS = null; + if ((tmpS = (String) handlerInfo.getHandlerConfig().get(WSHandlerConstants.SIG_KEY_ID)) == null) { + tmpS = (String) msgContext.getProperty(WSHandlerConstants.SIG_KEY_ID); + } + if (tmpS != null) { + Integer I = (Integer) WSHandlerConstants.keyIdentifier.get(tmpS); + if (I == null) { + throw new JAXRPCException("WSS4JHandler: Signature: unknown key identification"); + } + sigKeyId = I.intValue(); + if (!(sigKeyId == WSConstants.ISSUER_SERIAL + || sigKeyId == WSConstants.BST_DIRECT_REFERENCE + || sigKeyId == WSConstants.X509_KEY_IDENTIFIER + || sigKeyId == WSConstants.SKI_KEY_IDENTIFIER)) { + throw new JAXRPCException("WSS4JHandler: Signature: illegal key identification"); + } + } + if ((sigAlgorithm = (String) handlerInfo.getHandlerConfig().get(WSHandlerConstants.SIG_ALGO)) + == null) { + tmpS = (String) msgContext.getProperty(WSHandlerConstants.SIG_ALGO); + } + if ((tmpS = (String) handlerInfo.getHandlerConfig().get(WSHandlerConstants.SIGNATURE_PARTS)) + == null) { + tmpS = + (String) msgContext.getProperty(WSHandlerConstants.SIGNATURE_PARTS); + } + if (tmpS != null) { + splitEncParts(tmpS, signatureParts); + } } /*
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | cvs commit: ws-fx/addressing/src/org/apache/ws/addressing/handler ClientSideAddressingHandler.java, dims-1oDqGaOF3Lkdnm+yROfE0A |
|---|---|
| Next by Date: | cvs commit: ws-fx/sandesha/src/org/apache/sandesha Constants.java, jaliya-1oDqGaOF3Lkdnm+yROfE0A |
| Previous by Thread: | cvs commit: ws-fx/addressing/src/org/apache/ws/addressing/handler ClientSideAddressingHandler.java, dims-1oDqGaOF3Lkdnm+yROfE0A |
| Next by Thread: | cvs commit: ws-fx/sandesha/src/org/apache/sandesha/server Sender.java, jaliya-1oDqGaOF3Lkdnm+yROfE0A |
| 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 |