public class FTPSServerSocketFactory extends ServerSocketFactory
Constructor and Description |
---|
FTPSServerSocketFactory(SSLContext sslContext)
Constructs a new instance for the given SSL 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 sslContext)
sslContext
- The SSL 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 initializeClassCastException
- if socket is not an instance of SSLServerSocketCopyright © 2001–2021 The Apache Software Foundation. All rights reserved.