You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by rw...@apache.org on 2009/02/19 16:56:06 UTC
svn commit: r745907 -
/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPSClient.java
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);
+ }
/**