|
|||||||||
Home >> All >> gnu >> javax >> net >> ssl >> [ provider overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
gnu.javax.net.ssl.provider
Class SSLServerSocket

java.lang.Objectjava.net.ServerSocket
javax.net.ssl.SSLServerSocket
gnu.javax.net.ssl.provider.SSLServerSocket
- class SSLServerSocket
- extends javax.net.ssl.SSLServerSocket
Field Summary | |
private boolean |
clientMode
|
private boolean |
createSessions
|
private java.util.SortedSet |
enabledProtocols
|
private java.util.List |
enabledSuites
|
private javax.net.ssl.X509KeyManager |
keyManager
|
private boolean |
needClientAuth
|
private java.security.SecureRandom |
random
|
private SessionContext |
sessions
|
private gnu.javax.net.ssl.SRPTrustManager |
srpTrustManager
|
private javax.net.ssl.X509TrustManager |
trustManager
|
private boolean |
wantClientAuth
|
Fields inherited from class java.net.ServerSocket |
|
Constructor Summary | |
(package private) |
SSLServerSocket()
|
(package private) |
SSLServerSocket(int port)
|
(package private) |
SSLServerSocket(int port,
int backlog)
|
(package private) |
SSLServerSocket(int port,
int backlog,
java.net.InetAddress address)
|
Method Summary | |
java.net.Socket |
accept()
Accepts a new connection and returns a connected Socket
instance representing that connection. |
java.lang.String[] |
getEnabledCipherSuites()
Returns the list of cihper suites that are currently enabled in this server socket. |
java.lang.String[] |
getEnabledProtocols()
Returns the list of enabled protocols, such as "SSLv3" and "TLSv1". |
boolean |
getEnableSessionCreation()
Returns whether or not sessions will be created, i.e., whether or not this server socket will allow SSL session resumption. |
boolean |
getNeedClientAuth()
Returns whether or not this server socket will require clients to authenticate themselves, such as through a certificate. |
java.lang.String[] |
getSupportedCipherSuites()
Returns a list of cipher suites that this server socket supports. |
java.lang.String[] |
getSupportedProtocols()
Returns a list of SSL protocols supported by this server socket. |
boolean |
getUseClientMode()
Returns whether or not sockets accepted by this server socket will do their handshake as the client-side. |
boolean |
getWantClientAuth()
Returns whether or not this socket will ask for, but not require, that connecting clients authenticate themselves. |
void |
setEnabledCipherSuites(java.lang.String[] suites)
Sets the list enabled cipher suites. |
void |
setEnabledProtocols(java.lang.String[] protocols)
Sets the list of enabled protocols. |
void |
setEnabledSessionCreation(boolean createSessions)
|
void |
setEnableSessionCreation(boolean createSessions)
Sets whether or not sessions will be created. |
(package private) void |
setKeyManager(javax.net.ssl.X509KeyManager keyManager)
|
void |
setNeedClientAuth(boolean needClientAuth)
Enabled or disables the requirement that clients authenticate themselves. |
(package private) void |
setRandom(java.security.SecureRandom random)
|
(package private) void |
setSessionContext(SessionContext sessions)
|
(package private) void |
setSRPTrustManager(gnu.javax.net.ssl.SRPTrustManager srpTrustManager)
|
(package private) void |
setTrustManager(javax.net.ssl.X509TrustManager trustManager)
|
void |
setUseClientMode(boolean clientMode)
Sets whether or not sockets accepted by this server socket will be created in client mode. |
void |
setWantClientAuth(boolean wantClientAuth)
Sets whether or not this server socket will want client authentication. |
Methods inherited from class java.net.ServerSocket |
bind, bind, close, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
sessions
private SessionContext sessions
enabledProtocols
private java.util.SortedSet enabledProtocols
enabledSuites
private java.util.List enabledSuites
clientMode
private boolean clientMode
needClientAuth
private boolean needClientAuth
wantClientAuth
private boolean wantClientAuth
createSessions
private boolean createSessions
srpTrustManager
private gnu.javax.net.ssl.SRPTrustManager srpTrustManager
trustManager
private javax.net.ssl.X509TrustManager trustManager
keyManager
private javax.net.ssl.X509KeyManager keyManager
random
private java.security.SecureRandom random
Constructor Detail |
SSLServerSocket
SSLServerSocket() throws java.io.IOException
SSLServerSocket
SSLServerSocket(int port) throws java.io.IOException
SSLServerSocket
SSLServerSocket(int port, int backlog) throws java.io.IOException
SSLServerSocket
SSLServerSocket(int port, int backlog, java.net.InetAddress address) throws java.io.IOException
Method Detail |
getSupportedCipherSuites
public java.lang.String[] getSupportedCipherSuites()
- Description copied from class:
javax.net.ssl.SSLServerSocket
- Returns a list of cipher suites that this server socket supports.
getEnabledCipherSuites
public java.lang.String[] getEnabledCipherSuites()
- Description copied from class:
javax.net.ssl.SSLServerSocket
- Returns the list of cihper suites that are currently enabled in this
server socket. Sockets accepted by this server socket will only have
these suites enabled.
setEnabledCipherSuites
public void setEnabledCipherSuites(java.lang.String[] suites)
- Description copied from class:
javax.net.ssl.SSLServerSocket
- Sets the list enabled cipher suites.
getSupportedProtocols
public java.lang.String[] getSupportedProtocols()
- Description copied from class:
javax.net.ssl.SSLServerSocket
- Returns a list of SSL protocols supported by this server socket.
getEnabledProtocols
public java.lang.String[] getEnabledProtocols()
- Description copied from class:
javax.net.ssl.SSLServerSocket
- Returns the list of enabled protocols, such as "SSLv3" and "TLSv1".
setEnabledProtocols
public void setEnabledProtocols(java.lang.String[] protocols)
- Description copied from class:
javax.net.ssl.SSLServerSocket
- Sets the list of enabled protocols.
setUseClientMode
public void setUseClientMode(boolean clientMode)
- Description copied from class:
javax.net.ssl.SSLServerSocket
- Sets whether or not sockets accepted by this server socket will be
created in client mode.
getUseClientMode
public boolean getUseClientMode()
- Description copied from class:
javax.net.ssl.SSLServerSocket
- Returns whether or not sockets accepted by this server socket will do
their handshake as the client-side. The default is false.
setNeedClientAuth
public void setNeedClientAuth(boolean needClientAuth)
- Description copied from class:
javax.net.ssl.SSLServerSocket
- Enabled or disables the requirement that clients authenticate themselves.
When this is set to
true
, connections will be rejected if connecting clients do not provide proper authentication.
getNeedClientAuth
public boolean getNeedClientAuth()
- Description copied from class:
javax.net.ssl.SSLServerSocket
- Returns whether or not this server socket will require clients to
authenticate themselves, such as through a certificate.
setWantClientAuth
public void setWantClientAuth(boolean wantClientAuth)
- Description copied from class:
javax.net.ssl.SSLServerSocket
- Sets whether or not this server socket will want client authentication.
getWantClientAuth
public boolean getWantClientAuth()
- Description copied from class:
javax.net.ssl.SSLServerSocket
- Returns whether or not this socket will ask for, but not require, that
connecting clients authenticate themselves. Clients that do not
provide authentication they will still be allowed to connect.
setEnabledSessionCreation
public void setEnabledSessionCreation(boolean createSessions)
setEnableSessionCreation
public void setEnableSessionCreation(boolean createSessions)
- Description copied from class:
javax.net.ssl.SSLServerSocket
- Sets whether or not sessions will be created.
getEnableSessionCreation
public boolean getEnableSessionCreation()
- Description copied from class:
javax.net.ssl.SSLServerSocket
- Returns whether or not sessions will be created, i.e., whether or not
this server socket will allow SSL session resumption.
accept
public java.net.Socket accept() throws java.io.IOException
- Description copied from class:
java.net.ServerSocket
- Accepts a new connection and returns a connected
Socket
instance representing that connection. This method will block until a connection is available.
setSessionContext
void setSessionContext(SessionContext sessions)
setKeyManager
void setKeyManager(javax.net.ssl.X509KeyManager keyManager)
setTrustManager
void setTrustManager(javax.net.ssl.X509TrustManager trustManager)
setSRPTrustManager
void setSRPTrustManager(gnu.javax.net.ssl.SRPTrustManager srpTrustManager)
setRandom
void setRandom(java.security.SecureRandom random)
|
|||||||||
Home >> All >> gnu >> javax >> net >> ssl >> [ provider overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |