Example usage for Java javax.net.ssl SSLServerSocket fields, constructors, methods, implement or subclass
The text is from its open source code.
Socket | accept() Listens for a connection to be made to this socket and accepts it. |
void | bind(SocketAddress endpoint, int backlog) Binds the ServerSocket to a specific address (IP address and port number). |
void | close() Closes this socket. |
String[] | getEnabledCipherSuites() Returns the list of cipher suites which are currently enabled for use by newly accepted connections. |
String[] | getEnabledProtocols() Returns the names of the protocols which are currently enabled for use by the newly accepted connections. |
boolean | getNeedClientAuth() Returns true if client authentication will be required on newly accept ed server-mode SSLSocket s. |
String[] | getSupportedCipherSuites() Returns the names of the cipher suites which could be enabled for use on an SSL connection. |
String[] | getSupportedProtocols() Returns the names of the protocols which could be enabled for use. |
void | setEnabledCipherSuites(String suites[]) Sets the cipher suites enabled for use by accepted connections. |
void | setEnabledProtocols(String protocols[]) Controls which particular protocols are enabled for use by accepted connections. |
void | setEnableSessionCreation(boolean flag) Controls whether new SSL sessions may be established by the sockets which are created from this server socket. |
void | setNeedClientAuth(boolean need) Controls whether accept ed server-mode SSLSockets will be initially configured to require client authentication. |
void | setReceiveBufferSize(int size) Sets a default proposed value for the SocketOptions#SO_RCVBUF SO_RCVBUF option for sockets accepted from this ServerSocket . |
void | setReuseAddress(boolean on) Enable/disable the SocketOptions#SO_REUSEADDR SO_REUSEADDR socket option. |
void | setUseClientMode(boolean mode) Controls whether accepted connections are in the (default) SSL server mode, or the SSL client mode. |
void | setWantClientAuth(boolean want) Controls whether accept ed server-mode SSLSockets will be initially configured to request client authentication. |