public class OpenSSLServerSocketImpl extends SSLServerSocket
Modifier | Constructor and Description |
---|---|
protected |
OpenSSLServerSocketImpl(int port,
int backlog,
InetAddress iAddress,
SSLParametersImpl sslParameters) |
protected |
OpenSSLServerSocketImpl(int port,
int backlog,
SSLParametersImpl sslParameters) |
protected |
OpenSSLServerSocketImpl(int port,
SSLParametersImpl sslParameters) |
protected |
OpenSSLServerSocketImpl(SSLParametersImpl sslParameters) |
Modifier and Type | Method and Description |
---|---|
Socket |
accept()
Waits for an incoming request and blocks until the connection is opened.
|
String[] |
getEnabledCipherSuites()
Returns the names of the enabled cipher suites to be used for new
connections.
|
String[] |
getEnabledProtocols()
The names of the protocols' versions that in use on this SSL connection.
|
boolean |
getEnableSessionCreation()
Returns whether new SSL sessions may be established for new connections.
|
boolean |
getNeedClientAuth()
Returns whether server-mode connections will be configured to require
client authentication.
|
String[] |
getSupportedCipherSuites()
Returns the names of the supported cipher suites.
|
String[] |
getSupportedProtocols()
The names of the protocols' versions that may be used on this SSL
connection.
|
boolean |
getUseClientMode()
Returns whether new connection will act in client mode when handshaking.
|
boolean |
getWantClientAuth()
Returns whether server-mode connections will be configured to request
client authentication.
|
void |
setEnabledCipherSuites(String[] suites)
This method enables the cipher suites listed by
getSupportedCipherSuites().
|
void |
setEnabledProtocols(String[] protocols)
This method enables the protocols' versions listed by
getSupportedProtocols().
|
void |
setEnableSessionCreation(boolean flag)
Sets whether new SSL sessions may be established for new connections.
|
void |
setNeedClientAuth(boolean need)
Sets whether server-mode connections will be configured to require client
authentication.
|
void |
setUseClientMode(boolean mode)
Sets whether new connections should act in client mode when handshaking.
|
void |
setWantClientAuth(boolean want)
Sets whether server-mode connections will be configured to request client
authentication.
|
bind, bind, close, getChannel, getImpl$, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toString
protected OpenSSLServerSocketImpl(SSLParametersImpl sslParameters) throws IOException
IOException
protected OpenSSLServerSocketImpl(int port, SSLParametersImpl sslParameters) throws IOException
IOException
protected OpenSSLServerSocketImpl(int port, int backlog, SSLParametersImpl sslParameters) throws IOException
IOException
protected OpenSSLServerSocketImpl(int port, int backlog, InetAddress iAddress, SSLParametersImpl sslParameters) throws IOException
IOException
public boolean getEnableSessionCreation()
SSLServerSocket
getEnableSessionCreation
in class SSLServerSocket
true
if new SSL sessions may be established,
false
if existing SSL sessions must be reused.public void setEnableSessionCreation(boolean flag)
SSLServerSocket
setEnableSessionCreation
in class SSLServerSocket
flag
- true
if new SSL sessions may be established,
false
if existing SSL sessions must be reused.public String[] getSupportedProtocols()
getSupportedProtocols
in class SSLServerSocket
public String[] getEnabledProtocols()
getEnabledProtocols
in class SSLServerSocket
public void setEnabledProtocols(String[] protocols)
setEnabledProtocols
in class SSLServerSocket
protocols
- names of all the protocols to enable.IllegalArgumentException
- when one or more of the names in the
array are not supported, or when the array is null.public String[] getSupportedCipherSuites()
SSLServerSocket
getSupportedCipherSuites
in class SSLServerSocket
public String[] getEnabledCipherSuites()
SSLServerSocket
getEnabledCipherSuites
in class SSLServerSocket
public void setEnabledCipherSuites(String[] suites)
setEnabledCipherSuites
in class SSLServerSocket
suites
- the names of all the cipher suites to enableIllegalArgumentException
- when one or more of the ciphers in array
suites are not supported, or when the array is null.public boolean getWantClientAuth()
SSLServerSocket
getWantClientAuth
in class SSLServerSocket
true
is client authentication will be requested,
false
if no client authentication is needed.public void setWantClientAuth(boolean want)
SSLServerSocket
SSLServerSocket.setNeedClientAuth(boolean)
.setWantClientAuth
in class SSLServerSocket
want
- true
if client authentication should be requested,
false
if no authentication is needed.public boolean getNeedClientAuth()
SSLServerSocket
getNeedClientAuth
in class SSLServerSocket
true
if client authentication is required, false
if no client authentication is needed.public void setNeedClientAuth(boolean need)
SSLServerSocket
SSLServerSocket.setWantClientAuth(boolean)
.setNeedClientAuth
in class SSLServerSocket
need
- true
if client authentication is required,
false
if no authentication is needed.public void setUseClientMode(boolean mode)
SSLServerSocket
setUseClientMode
in class SSLServerSocket
mode
- true
if new connections should act in client mode,
false
if not.public boolean getUseClientMode()
SSLServerSocket
getUseClientMode
in class SSLServerSocket
true
if new connections will act in client mode when
handshaking, false
if not.public Socket accept() throws IOException
ServerSocket
accept
in class ServerSocket
IOException
- if an error occurs while accepting a new connection.