You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by co...@apache.org on 2012/06/21 11:02:28 UTC
svn commit: r1352462 -
/webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/WSSecEncryptedKey.java
Author: coheigea
Date: Thu Jun 21 09:02:28 2012
New Revision: 1352462
URL: http://svn.apache.org/viewvc?rev=1352462&view=rev
Log:
Fixed some faulty logic in WSSecEncryptedKey (hat tip: Glen Mazza)
Modified:
webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/WSSecEncryptedKey.java
Modified: webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/WSSecEncryptedKey.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/WSSecEncryptedKey.java?rev=1352462&r1=1352461&r2=1352462&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/WSSecEncryptedKey.java (original)
+++ webservices/wss4j/trunk/src/main/java/org/apache/ws/security/message/WSSecEncryptedKey.java Thu Jun 21 09:02:28 2012
@@ -605,7 +605,10 @@ public class WSSecEncryptedKey extends W
}
public boolean isCertSet() {
- return (useThisCert == null ? true : false) ;
+ if (useThisCert == null) {
+ return false;
+ }
+ return true;
}
public byte[] getEncryptedEphemeralKey() {