cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1526931 - /cxf/branches/2.7.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/AbstractSTSClient.java
Date Fri, 27 Sep 2013 15:04:49 GMT
Author: coheigea
Date: Fri Sep 27 15:04:48 2013
New Revision: 1526931

URL: http://svn.apache.org/r1526931
Log:
Merged revisions 1526915 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1526915 | coheigea | 2013-09-27 15:34:17 +0100 (Fri, 27 Sep 2013) | 2 lines

  [CXF-5305] - STSClient does not send Renewing element in renewal RequestSecurityToken message

........

Modified:
    cxf/branches/2.7.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/AbstractSTSClient.java

Modified: cxf/branches/2.7.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/AbstractSTSClient.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/AbstractSTSClient.java?rev=1526931&r1=1526930&r2=1526931&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/AbstractSTSClient.java
(original)
+++ cxf/branches/2.7.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/AbstractSTSClient.java
Fri Sep 27 15:04:48 2013
@@ -953,6 +953,18 @@ public abstract class AbstractSTSClient 
         StaxUtils.copy(tok.getToken(), writer);
         writer.writeEndElement();
         
+        // Write out renewal semantics
+        if (sendRenewing) {
+            writer.writeStartElement("wst", "Renewing", namespace);
+            if (!allowRenewing) {
+                writer.writeAttribute(null, "Allow", "false");
+            }
+            if (allowRenewing && allowRenewingAfterExpiry) {
+                writer.writeAttribute(null, "OK", "true");
+            }
+            writer.writeEndElement();
+        }
+        
         writer.writeEndElement();
 
         Object obj[] = client.invoke(boi, new DOMSource(writer.getDocument().getDocumentElement()));



Mime
View raw message