public class FTPSServerSocketFactory extends ServerSocketFactory
Constructor and Description |
---|
FTPSServerSocketFactory(SSLContext context) |
Modifier and Type | Method and Description |
---|---|
ServerSocket |
createServerSocket() |
ServerSocket |
createServerSocket(int port) |
ServerSocket |
createServerSocket(int port,
int backlog) |
ServerSocket |
createServerSocket(int port,
int backlog,
InetAddress ifAddress) |
ServerSocket |
init(ServerSocket socket)
Sets the socket so newly accepted connections will use SSL client mode.
|
getDefault
public FTPSServerSocketFactory(SSLContext context)
public ServerSocket createServerSocket() throws IOException
createServerSocket
in class ServerSocketFactory
IOException
public ServerSocket createServerSocket(int port) throws IOException
createServerSocket
in class ServerSocketFactory
IOException
public ServerSocket createServerSocket(int port, int backlog) throws IOException
createServerSocket
in class ServerSocketFactory
IOException
public ServerSocket createServerSocket(int port, int backlog, InetAddress ifAddress) throws IOException
createServerSocket
in class ServerSocketFactory
IOException
public ServerSocket init(ServerSocket socket)
socket
- the SSLServerSocket to initialiseClassCastException
- if socket is not an instance of SSLServerSocketCopyright © 2001–2017 The Apache Software Foundation. All rights reserved.