You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2013/08/14 17:32:51 UTC

svn commit: r1513930 - in /cxf/trunk/core/src/main/java/org/apache/cxf/configuration/jsse: TLSClientParameters.java TLSParameterBase.java

Author: coheigea
Date: Wed Aug 14 15:32:51 2013
New Revision: 1513930

URL: http://svn.apache.org/r1513930
Log:
[CXF-5205] - Client SSL Cache Timeout default is specified in milliseconds rather than seconds

Modified:
    cxf/trunk/core/src/main/java/org/apache/cxf/configuration/jsse/TLSClientParameters.java
    cxf/trunk/core/src/main/java/org/apache/cxf/configuration/jsse/TLSParameterBase.java

Modified: cxf/trunk/core/src/main/java/org/apache/cxf/configuration/jsse/TLSClientParameters.java
URL: http://svn.apache.org/viewvc/cxf/trunk/core/src/main/java/org/apache/cxf/configuration/jsse/TLSClientParameters.java?rev=1513930&r1=1513929&r2=1513930&view=diff
==============================================================================
--- cxf/trunk/core/src/main/java/org/apache/cxf/configuration/jsse/TLSClientParameters.java (original)
+++ cxf/trunk/core/src/main/java/org/apache/cxf/configuration/jsse/TLSClientParameters.java Wed Aug 14 15:32:51 2013
@@ -30,7 +30,7 @@ import javax.net.ssl.SSLSocketFactory;
 public class TLSClientParameters extends TLSParameterBase {
     private boolean disableCNCheck;
     private SSLSocketFactory sslSocketFactory;
-    private int sslCacheTimeout = 86400000;
+    private int sslCacheTimeout = 86400;
     private boolean useHttpsURLConnectionDefaultSslSocketFactory;
     private boolean useHttpsURLConnectionDefaultHostnameVerifier;
 
@@ -70,14 +70,14 @@ public class TLSClientParameters extends
     }
     
     /**
-     * Returns the SSL cache timeout if it has been configured or the JDK default value
+     * Returns the SSL cache timeout in seconds if it has been configured or the default value
      */
     public int getSslCacheTimeout() {
         return sslCacheTimeout;
     }
 
     /**
-     * This sets the SSL Session Cache timeout value for client sessions handled by CXF
+     * This sets the SSL Session Cache timeout value in seconds for client sessions handled by CXF
      */
     public void setSslCacheTimeout(int sslCacheTimeout) {
         this.sslCacheTimeout = sslCacheTimeout;

Modified: cxf/trunk/core/src/main/java/org/apache/cxf/configuration/jsse/TLSParameterBase.java
URL: http://svn.apache.org/viewvc/cxf/trunk/core/src/main/java/org/apache/cxf/configuration/jsse/TLSParameterBase.java?rev=1513930&r1=1513929&r2=1513930&view=diff
==============================================================================
--- cxf/trunk/core/src/main/java/org/apache/cxf/configuration/jsse/TLSParameterBase.java (original)
+++ cxf/trunk/core/src/main/java/org/apache/cxf/configuration/jsse/TLSParameterBase.java Wed Aug 14 15:32:51 2013
@@ -121,7 +121,7 @@ public class TLSParameterBase {
     }
 
     /**
-     * This sets the secure random provider and alogorithm. If left unset or set
+     * This sets the secure random provider and algorithm. If left unset or set
      * to null, it uses the system default.
      */
     public final void setSecureRandom(SecureRandom random) {
@@ -143,7 +143,7 @@ public class TLSParameterBase {
     }
 
     /**
-     * Returns the secure random alogorithm.
+     * Returns the secure random algorithm.
      */
     public SecureRandom getSecureRandom() {
         return secureRandom;