commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwins...@apache.org
Subject svn commit: r745907 - /commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPSClient.java
Date Thu, 19 Feb 2009 15:56:06 GMT
Author: rwinston
Date: Thu Feb 19 15:56:05 2009
New Revision: 745907

URL: http://svn.apache.org/viewvc?rev=745907&view=rev
Log:
NET-256 : Accept preconfigured SSLContext

Modified:
    commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPSClient.java

Modified: commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPSClient.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPSClient.java?rev=745907&r1=745906&r2=745907&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPSClient.java
(original)
+++ commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPSClient.java
Thu Feb 19 15:56:05 2009
@@ -131,6 +131,24 @@
         this.protocol = protocol;
         this.isImplicit = isImplicit;
     }
+    
+    /**
+     * Constructor for FTPSClient.
+     * @param isImplicit The secutiry mode(Implicit/Explicit).
+     * @param context A pre-configured SSL Context
+     */
+    public FTPSClient(boolean isImplicit, SSLContext context) {
+        this.isImplicit = isImplicit;
+        this.context = context;
+    }
+    
+    /**
+     * Constructor for FTPSClient.
+     * @param context A pre-configured SSL Context
+     */
+    public FTPSClient(SSLContext context) {
+        this(false, context);
+    }
 
 
     /**



Mime
View raw message