ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gi...@apache.org
Subject svn commit: r1325356 - /webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/swssf/wss/impl/processor/input/SignatureInputHandler.java
Date Thu, 12 Apr 2012 16:29:41 GMT
Author: giger
Date: Thu Apr 12 16:29:41 2012
New Revision: 1325356

URL: http://svn.apache.org/viewvc?rev=1325356&view=rev
Log:
Fix a possible ClassCastException introduced by BSP rule

Modified:
    webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/swssf/wss/impl/processor/input/SignatureInputHandler.java

Modified: webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/swssf/wss/impl/processor/input/SignatureInputHandler.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/swssf/wss/impl/processor/input/SignatureInputHandler.java?rev=1325356&r1=1325355&r2=1325356&view=diff
==============================================================================
--- webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/swssf/wss/impl/processor/input/SignatureInputHandler.java
(original)
+++ webservices/wss4j/branches/swssf/streaming-ws-security/src/main/java/org/swssf/wss/impl/processor/input/SignatureInputHandler.java
Thu Apr 12 16:29:41 2012
@@ -34,7 +34,7 @@ import org.swssf.wss.securityEvent.Token
 import org.swssf.xmlsec.ext.*;
 import org.swssf.xmlsec.impl.processor.input.AbstractSignatureInputHandler;
 
-import javax.xml.bind.JAXBElement;
+import java.math.BigInteger;
 import java.util.Iterator;
 import java.util.List;
 
@@ -95,7 +95,7 @@ public class SignatureInputHandler exten
             ((WSSecurityContext) inputProcessorChain.getSecurityContext()).handleBSPRule(WSSConstants.BSPRule.R5421);
         }
         //todo test:
-        JAXBElement hmacOutputLength = XMLSecurityUtils.getQNameType(
+        BigInteger hmacOutputLength = XMLSecurityUtils.getQNameType(
                 signatureType.getSignedInfo().getSignatureMethod().getContent(),
                 WSSConstants.TAG_dsig_HMACOutputLength);
         if (hmacOutputLength != null) {



Mime
View raw message