Package org.apache.commons.net.ftp
Class FTPSServerSocketFactory
java.lang.Object
javax.net.ServerSocketFactory
org.apache.commons.net.ftp.FTPSServerSocketFactory
Server socket factory for FTPS connections.
- Since:
- 2.2
- 
Constructor SummaryConstructorsConstructorDescriptionFTPSServerSocketFactory(SSLContext sslContext) Constructs a new instance for the given SSL context.
- 
Method SummaryModifier and TypeMethodDescriptioncreateServerSocket(int port) createServerSocket(int port, int backlog) createServerSocket(int port, int backlog, InetAddress ifAddress) init(ServerSocket socket) Sets the socket so newly accepted connections will use SSL client mode.Methods inherited from class javax.net.ServerSocketFactorygetDefault
- 
Constructor Details- 
FTPSServerSocketFactoryConstructs a new instance for the given SSL context.- Parameters:
- sslContext- The SSL context.
 
 
- 
- 
Method Details- 
createServerSocket- Overrides:
- createServerSocketin class- ServerSocketFactory
- Throws:
- IOException
 
- 
createServerSocket- Specified by:
- createServerSocketin class- ServerSocketFactory
- Throws:
- IOException
 
- 
createServerSocket- Specified by:
- createServerSocketin class- ServerSocketFactory
- Throws:
- IOException
 
- 
createServerSocketpublic ServerSocket createServerSocket(int port, int backlog, InetAddress ifAddress) throws IOException - Specified by:
- createServerSocketin class- ServerSocketFactory
- Throws:
- IOException
 
- 
initSets the socket so newly accepted connections will use SSL client mode.- Parameters:
- socket- the SSLServerSocket to initialize
- Returns:
- the socket
- Throws:
- ClassCastException- if socket is not an instance of SSLServerSocket
 
 
-