java.lang.Object | ||
↳ | java.net.ServerSocket | |
↳ | javax.net.ssl.SSLServerSocket |
The extension of ServerSocket
which provides secure server sockets
based on protocols like SSL, TLS, or others.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Only to be used by subclasses.
| |||||||||||
Only to be used by subclasses.
| |||||||||||
Only to be used by subclasses.
| |||||||||||
Only to be used by subclasses.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns whether new SSL sessions may be established for new connections.
| |||||||||||
Returns the names of the enabled cipher suites to be used for new
connections.
| |||||||||||
Returns the names of the enabled protocols to be used for new
connections.
| |||||||||||
Returns whether server-mode connections will be configured to require
client authentication.
| |||||||||||
Returns the names of the supported cipher suites.
| |||||||||||
Returns the names of the supported protocols.
| |||||||||||
Returns whether new connection will act in client mode when handshaking.
| |||||||||||
Returns whether server-mode connections will be configured to request
client authentication.
| |||||||||||
Sets whether new SSL sessions may be established for new connections.
| |||||||||||
Sets the names of the cipher suites to be enabled for new connections.
| |||||||||||
Sets the names of the protocols to be enabled for new connections.
| |||||||||||
Sets whether server-mode connections will be configured to require client
authentication.
| |||||||||||
Sets whether new connections should act in client mode when handshaking.
| |||||||||||
Sets whether server-mode connections will be configured to request client
authentication.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.net.ServerSocket
| |||||||||||
From class java.lang.Object
|
Only to be used by subclasses.
Creates a TCP server socket with the default authentication context.
IOException | if creating the socket fails. |
---|
Only to be used by subclasses.
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. |
---|
Only to be used by subclasses.
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. |
---|
Only to be used by subclasses.
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. |
---|
Returns whether new SSL sessions may be established for new connections.
true
if new SSL sessions may be established,
false
if existing SSL sessions must be reused.
Returns the names of the enabled cipher suites to be used for new connections.
Returns the names of the enabled protocols to be used for new connections.
Returns whether server-mode connections will be configured to require client authentication.
true
if client authentication is required, false
if no client authentication is needed.
Returns the names of the supported cipher suites.
Returns the names of the supported protocols.
Returns whether new connection will act in client mode when handshaking.
true
if new connections will act in client mode when
handshaking, false
if not.
Returns whether server-mode connections will be configured to request client authentication.
true
is client authentication will be requested,
false
if no client authentication is needed.
Sets whether new SSL sessions may be established for new connections.
flag | true if new SSL sessions may be established,
false if existing SSL sessions must be reused.
|
---|
Sets the names of the cipher suites to be enabled for new connections.
Only cipher suites returned by getSupportedCipherSuites()
are
allowed.
suites | the names of the to be enabled cipher suites. |
---|
IllegalArgumentException | if one of the cipher suite names is not supported. |
---|
Sets the names of the protocols to be enabled for new connections. Only
protocols returned by getSupportedProtocols()
are allowed.
protocols | the names of the to be enabled protocols. |
---|
IllegalArgumentException | if one of the protocols is not supported. |
---|
Sets whether server-mode connections will be configured to require client authentication. The client authentication is one of the following:
setWantClientAuth(boolean)
.need | true if client authentication is required,
false if no authentication is needed.
|
---|
Sets whether new connections should act in client mode when handshaking.
mode | true if new connections should act in client mode,
false if not.
|
---|
Sets whether server-mode connections will be configured to request client authentication. The client authentication is one of the following:
setNeedClientAuth(boolean)
.want | true if client authentication should be requested,
false if no authentication is needed.
|
---|