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/09/06 18:24:28 UTC

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

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)