public final class DefaultServerSocketFactory extends Object implements ServerSocketFactory
Constructor and Description |
---|
DefaultServerSocketFactory() |
Modifier and Type | Method and Description |
---|---|
ServerSocket |
createSocket(int port)
Returns a server socket which uses all network interfaces on
the host, and is bound to a the specified port.
|
ServerSocket |
createSocket(int port,
int backlog)
Returns a server socket which uses all network interfaces on
the host, is bound to a the specified port, and uses the
specified connection backlog.
|
ServerSocket |
createSocket(int port,
int backlog,
InetAddress ifAddress)
Returns a server socket which uses only the specified network
interface on the local host, is bound to a the specified port,
and uses the specified connection backlog.
|
public ServerSocket createSocket(int port) throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException, KeyManagementException
createSocket
in interface ServerSocketFactory
port
- the port to listen toIOException
- input/output or network errorKeyStoreException
- error instantiating the
KeyStore from file (SSL only)NoSuchAlgorithmException
- KeyStore algorithm unsupported
by current provider (SSL only)CertificateException
- general certificate error (SSL only)UnrecoverableKeyException
- internal KeyStore problem with
the certificate (SSL only)KeyManagementException
- problem in the key management
layer (SSL only)public ServerSocket createSocket(int port, int backlog) throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException, KeyManagementException
createSocket
in interface ServerSocketFactory
port
- the port to listen tobacklog
- how many connections are queuedIOException
- input/output or network errorKeyStoreException
- error instantiating the
KeyStore from file (SSL only)NoSuchAlgorithmException
- KeyStore algorithm unsupported
by current provider (SSL only)CertificateException
- general certificate error (SSL only)UnrecoverableKeyException
- internal KeyStore problem with
the certificate (SSL only)KeyManagementException
- problem in the key management
layer (SSL only)public ServerSocket createSocket(int port, int backlog, InetAddress ifAddress) throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException, KeyManagementException
createSocket
in interface ServerSocketFactory
port
- the port to listen tobacklog
- how many connections are queuedifAddress
- the network interface address to useIOException
- input/output or network errorKeyStoreException
- error instantiating the
KeyStore from file (SSL only)NoSuchAlgorithmException
- KeyStore algorithm unsupported
by current provider (SSL only)CertificateException
- general certificate error (SSL only)UnrecoverableKeyException
- internal KeyStore problem with
the certificate (SSL only)KeyManagementException
- problem in the key management
layer (SSL only)Copyright © 2021. All rights reserved.