ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1381664 - /webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/str/BSPEnforcer.java
Date Thu, 06 Sep 2012 16:24:28 GMT
Author: coheigea
Date: Thu Sep  6 16:24:27 2012
New Revision: 1381664

URL: http://svn.apache.org/viewvc?rev=1381664&view=rev
Log:
Backporting a relaxation of one of the BSP rules

Modified:
    webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/str/BSPEnforcer.java

Modified: webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/str/BSPEnforcer.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/str/BSPEnforcer.java?rev=1381664&r1=1381663&r2=1381664&view=diff
==============================================================================
--- webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/str/BSPEnforcer.java
(original)
+++ webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/str/BSPEnforcer.java
Thu Sep  6 16:24:27 2012
@@ -52,14 +52,6 @@ public final class BSPEnforcer {
         if (secRef.containsReference()) {
             // Check the ValueType attributes
             String valueType = secRef.getReference().getValueType();
-            if ((valueType == null || "".equals(valueType)) && (token instanceof
KerberosSecurity)) {
-                throw new WSSecurityException(
-                    WSSecurityException.INVALID_SECURITY_TOKEN, 
-                    "invalidValueType", 
-                    new Object[]{valueType}
-                );
-            }
-
             if (((token instanceof X509Security) && !X509Security.X509_V3_TYPE.equals(valueType))
                 || ((token instanceof PKIPathSecurity) && !PKIPathSecurity.PKI_TYPE.equals(valueType))
                 || ((token instanceof KerberosSecurity) 



Mime
View raw message