cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1143346 - /cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java
Date Wed, 06 Jul 2011 11:29:52 GMT
Author: coheigea
Date: Wed Jul  6 11:29:51 2011
New Revision: 1143346

URL: http://svn.apache.org/viewvc?rev=1143346&view=rev
Log:
[CXF-3633] - Provide a way of disabling sending an AppliesTo element when requesting a security
token via the STSClient

Modified:
    cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java?rev=1143346&r1=1143345&r2=1143346&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java
(original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java
Wed Jul  6 11:29:51 2011
@@ -144,6 +144,7 @@ public class STSClient implements Config
     String namespace = STSUtils.WST_NS_05_12;
     String addressingNamespace;
     Object onBehalfOf;
+    boolean enableAppliesTo = true;
 
     boolean useCertificateForConfirmationKeyInfo;
     boolean isSecureConv;
@@ -257,6 +258,14 @@ public class STSClient implements Config
     public void setSecureConv(boolean secureConv) {
         this.isSecureConv = secureConv;
     }
+    
+    public boolean isEnableAppliesTo() {
+        return enableAppliesTo;
+    }
+    
+    public void setEnableAppliesTo(boolean enableAppliesTo) {
+        this.enableAppliesTo = enableAppliesTo;
+    }
 
     public void setAlgorithmSuite(AlgorithmSuite ag) {
         algorithmSuite = ag;
@@ -493,7 +502,9 @@ public class STSClient implements Config
         }
 
         addRequestType(requestType, writer);
-        addAppliesTo(writer, appliesTo);
+        if (enableAppliesTo) {
+            addAppliesTo(writer, appliesTo);
+        }
         addOnBehalfOf(writer);
         if (sptt == null) {
             addTokenType(writer);



Mime
View raw message