public abstract class SSLServerSocket extends ServerSocket
ServerSocket which provides secure server sockets
based on protocols like SSL, TLS, or others.| Modifier | Constructor and Description |
|---|---|
protected |
SSLServerSocket()
Only to be used by subclasses.
|
protected |
SSLServerSocket(int port)
Only to be used by subclasses.
|
protected |
SSLServerSocket(int port,
int backlog)
Only to be used by subclasses.
|
protected |
SSLServerSocket(int port,
int backlog,
InetAddress address)
Only to be used by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
abstract String[] |
getEnabledCipherSuites()
Returns the names of the enabled cipher suites to be used for new
connections.
|
abstract String[] |
getEnabledProtocols()
Returns the names of the enabled protocols to be used for new
connections.
|
abstract boolean |
getEnableSessionCreation()
Returns whether new SSL sessions may be established for new connections.
|
abstract boolean |
getNeedClientAuth()
Returns whether server-mode connections will be configured to require
client authentication.
|
abstract String[] |
getSupportedCipherSuites()
Returns the names of the supported cipher suites.
|
abstract String[] |
getSupportedProtocols()
Returns the names of the supported protocols.
|
abstract boolean |
getUseClientMode()
Returns whether new connection will act in client mode when handshaking.
|
abstract boolean |
getWantClientAuth()
Returns whether server-mode connections will be configured to request
client authentication.
|
abstract void |
setEnabledCipherSuites(String[] suites)
Sets the names of the cipher suites to be enabled for new connections.
|
abstract void |
setEnabledProtocols(String[] protocols)
Sets the names of the protocols to be enabled for new connections.
|
abstract void |
setEnableSessionCreation(boolean flag)
Sets whether new SSL sessions may be established for new connections.
|
abstract void |
setNeedClientAuth(boolean need)
Sets whether server-mode connections will be configured to require client
authentication.
|
abstract void |
setUseClientMode(boolean mode)
Sets whether new connections should act in client mode when handshaking.
|
abstract void |
setWantClientAuth(boolean want)
Sets whether server-mode connections will be configured to request client
authentication.
|
accept, bind, bind, close, getChannel, getImpl$, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toStringprotected SSLServerSocket()
throws IOException
Creates a TCP server socket with the default authentication context.
IOException - if creating the socket fails.protected SSLServerSocket(int port)
throws IOException
Creates a TCP server socket on the specified port with the default authentication context. The connection's default backlog size is 50 connections.
port - the port to listen on.IOException - if creating the socket fails.protected SSLServerSocket(int port,
int backlog)
throws IOException
Creates a TCP server socket on the specified port using the specified backlog and the default authentication context.
port - the port to listen on.backlog - the number of pending connections to queue.IOException - if creating the socket fails.protected SSLServerSocket(int port,
int backlog,
InetAddress address)
throws IOException
Creates a TCP server socket on the specified port, using the specified backlog, listening on the specified interface, and using the default authentication context.
port - the port the listen on.backlog - the number of pending connections to queue.address - the address of the interface to accept connections on.IOException - if creating the socket fails.public abstract String[] getEnabledCipherSuites()
public abstract void setEnabledCipherSuites(String[] suites)
getSupportedCipherSuites() are
allowed.suites - the names of the to be enabled cipher suites.IllegalArgumentException - if one of the cipher suite names is not supported.public abstract String[] getSupportedCipherSuites()
public abstract String[] getSupportedProtocols()
public abstract String[] getEnabledProtocols()
public abstract void setEnabledProtocols(String[] protocols)
getSupportedProtocols() are allowed.protocols - the names of the to be enabled protocols.IllegalArgumentException - if one of the protocols is not supported.public abstract void setNeedClientAuth(boolean need)
setWantClientAuth(boolean).need - true if client authentication is required,
false if no authentication is needed.public abstract boolean getNeedClientAuth()
true if client authentication is required, false
if no client authentication is needed.public abstract void setWantClientAuth(boolean want)
setNeedClientAuth(boolean).want - true if client authentication should be requested,
false if no authentication is needed.public abstract boolean getWantClientAuth()
true is client authentication will be requested,
false if no client authentication is needed.public abstract void setUseClientMode(boolean mode)
mode - true if new connections should act in client mode,
false if not.public abstract boolean getUseClientMode()
true if new connections will act in client mode when
handshaking, false if not.public abstract void setEnableSessionCreation(boolean flag)
flag - true if new SSL sessions may be established,
false if existing SSL sessions must be reused.public abstract boolean getEnableSessionCreation()
true if new SSL sessions may be established,
false if existing SSL sessions must be reused.