cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1150774 - /cxf/branches/2.4.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java
Date Mon, 25 Jul 2011 16:40:11 GMT
Author: coheigea
Date: Mon Jul 25 16:40:10 2011
New Revision: 1150774

URL: http://svn.apache.org/viewvc?rev=1150774&view=rev
Log:
Added ability to set the lifetime on an STSClient

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

Modified: cxf/branches/2.4.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java?rev=1150774&r1=1150773&r2=1150774&view=diff
==============================================================================
--- cxf/branches/2.4.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java
(original)
+++ cxf/branches/2.4.x-fixes/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java
Mon Jul 25 16:40:10 2011
@@ -148,6 +148,7 @@ public class STSClient implements Config
 
     boolean useCertificateForConfirmationKeyInfo;
     boolean isSecureConv;
+    boolean enableLifetime;
     int ttl = 300;
     
     Object actAs;
@@ -189,6 +190,14 @@ public class STSClient implements Config
         this.message = message;
     }
 
+    public void setTtl(int ttl) {
+        this.ttl = ttl;
+    }
+    
+    public void setEnableLifetime(boolean enableLifetime) {
+        this.enableLifetime = enableLifetime;
+    }
+    
     /**
      * Sets the WS-P policy that is applied to communications between this client and the
remote server
      * if no value is supplied for {@link #setWsdlLocation(String)}.
@@ -521,7 +530,7 @@ public class STSClient implements Config
         if (sptt == null) {
             addTokenType(writer);
         }
-        if (isSecureConv) {
+        if (isSecureConv || enableLifetime) {
             addLifetime(writer);
         }
         if (keyTypeTemplate == null) {



Mime
View raw message