Example usage for Java javax.net.ssl SSLSocket fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addHandshakeCompletedListener(HandshakeCompletedListener listener) Registers an event listener to receive notifications that an SSL handshake has completed on this connection. |
void | bind(SocketAddress bindpoint) Binds the socket to a local address. |
void | close() Closes this socket. |
void | connect(SocketAddress endpoint) Connects this socket to the server. |
void | connect(SocketAddress endpoint, int timeout) Connects this socket to the server with a specified timeout value. |
Class> | getClass() Returns the runtime class of this Object . |
String[] | getEnabledCipherSuites() Returns the names of the SSL cipher suites which are currently enabled for use on this connection. |
String[] | getEnabledProtocols() Returns the names of the protocol versions which are currently enabled for use on this connection. |
boolean | getEnableSessionCreation() Returns true if new SSL sessions may be established by this socket. |
SSLSession | getHandshakeSession() Returns the SSLSession being constructed during a SSL/TLS handshake. |
InetAddress | getInetAddress() Returns the address to which the socket is connected. |
InputStream | getInputStream() Returns an input stream for this socket. |
boolean | getNeedClientAuth() Returns true if the socket will require client authentication. |
OutputStream | getOutputStream() Returns an output stream for this socket. |
int | getPort() Returns the remote port number to which this socket is connected. |
SocketAddress | getRemoteSocketAddress() Returns the address of the endpoint this socket is connected to, or null if it is unconnected. |
int | getSendBufferSize() Get value of the SocketOptions#SO_SNDBUF SO_SNDBUF option for this Socket , that is the buffer size used by the platform for output on this Socket . |
SSLSession | getSession() Returns the SSL Session in use by this connection. |
int | getSoTimeout() Returns setting for SocketOptions#SO_TIMEOUT SO_TIMEOUT . |
SSLParameters | getSSLParameters() Returns the SSLParameters in effect for this SSLSocket. |
String[] | getSupportedCipherSuites() Returns the names of the cipher suites which could be enabled for use on this connection. |
String[] | getSupportedProtocols() Returns the names of the protocols which could be enabled for use on an SSL connection. |
boolean | getUseClientMode() Returns true if the socket is set to use client mode when handshaking. |
boolean | getWantClientAuth() Returns true if the socket will request client authentication. |
boolean | isClosed() Returns the closed state of the socket. |
boolean | isConnected() Returns the connection state of the socket. |
void | setEnabledCipherSuites(String suites[]) Sets the cipher suites enabled for use on this connection. |
void | setEnabledProtocols(String protocols[]) Sets the protocol versions enabled for use on this connection. |
void | setEnableSessionCreation(boolean flag) Controls whether new SSL sessions may be established by this socket. |
void | setNeedClientAuth(boolean need) Configures the socket to require client authentication. |
void | setReuseAddress(boolean on) Enable/disable the SocketOptions#SO_REUSEADDR SO_REUSEADDR socket option. |
void | setSoTimeout(int timeout) Enable/disable SocketOptions#SO_TIMEOUT SO_TIMEOUT with the specified timeout, in milliseconds. |
void | setSSLParameters(SSLParameters params) Applies SSLParameters to this socket. |
void | setUseClientMode(boolean mode) Configures the socket to use client (or server) mode when handshaking. |
void | setWantClientAuth(boolean want) Configures the socket to request client authentication. |
void | startHandshake() Starts an SSL handshake on this connection. |