Java javax.net.ssl SSLSocket fields, constructors, methods, implement or subclass

Example usage for Java javax.net.ssl SSLSocket fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.net.ssl SSLSocket.

The text is from its open source code.

Subclass

javax.net.ssl.SSLSocket has subclasses.
Click this link to see all its subclasses.

Method

voidaddHandshakeCompletedListener(HandshakeCompletedListener listener)
Registers an event listener to receive notifications that an SSL handshake has completed on this connection.
voidbind(SocketAddress bindpoint)
Binds the socket to a local address.
voidclose()
Closes this socket.
voidconnect(SocketAddress endpoint)
Connects this socket to the server.
voidconnect(SocketAddress endpoint, int timeout)
Connects this socket to the server with a specified timeout value.
ClassgetClass()
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.
booleangetEnableSessionCreation()
Returns true if new SSL sessions may be established by this socket.
SSLSessiongetHandshakeSession()
Returns the SSLSession being constructed during a SSL/TLS handshake.
InetAddressgetInetAddress()
Returns the address to which the socket is connected.
InputStreamgetInputStream()
Returns an input stream for this socket.
booleangetNeedClientAuth()
Returns true if the socket will require client authentication.
OutputStreamgetOutputStream()
Returns an output stream for this socket.
intgetPort()
Returns the remote port number to which this socket is connected.
SocketAddressgetRemoteSocketAddress()
Returns the address of the endpoint this socket is connected to, or null if it is unconnected.
intgetSendBufferSize()
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 .
SSLSessiongetSession()
Returns the SSL Session in use by this connection.
intgetSoTimeout()
Returns setting for SocketOptions#SO_TIMEOUT SO_TIMEOUT .
SSLParametersgetSSLParameters()
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.
booleangetUseClientMode()
Returns true if the socket is set to use client mode when handshaking.
booleangetWantClientAuth()
Returns true if the socket will request client authentication.
booleanisClosed()
Returns the closed state of the socket.
booleanisConnected()
Returns the connection state of the socket.
voidsetEnabledCipherSuites(String suites[])
Sets the cipher suites enabled for use on this connection.
voidsetEnabledProtocols(String protocols[])
Sets the protocol versions enabled for use on this connection.
voidsetEnableSessionCreation(boolean flag)
Controls whether new SSL sessions may be established by this socket.
voidsetNeedClientAuth(boolean need)
Configures the socket to require client authentication.
voidsetReuseAddress(boolean on)
Enable/disable the SocketOptions#SO_REUSEADDR SO_REUSEADDR socket option.
voidsetSoTimeout(int timeout)
Enable/disable SocketOptions#SO_TIMEOUT SO_TIMEOUT with the specified timeout, in milliseconds.
voidsetSSLParameters(SSLParameters params)
Applies SSLParameters to this socket.
voidsetUseClientMode(boolean mode)
Configures the socket to use client (or server) mode when handshaking.
voidsetWantClientAuth(boolean want)
Configures the socket to request client authentication.
voidstartHandshake()
Starts an SSL handshake on this connection.