| Package | Description |
|---|---|
| java.net |
Provides the classes for implementing networking applications.
|
| java.nio.channels |
Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations.
|
| java.rmi.server |
Provides classes and interfaces for supporting the server side of RMI.
|
| javax.net |
Provides classes for networking applications.
|
| javax.net.ssl |
Provides classes for the secure socket package.
|
| javax.rmi.ssl |
Provides implementations of
RMIClientSocketFactory and
RMIServerSocketFactory over the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocols.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
ServerSocket.accept()
Listens for a connection to be made to this socket and accepts it.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ServerSocket.implAccept(Socket
Subclasses of ServerSocket use this method to override accept() to return their own subclass of socket.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Socket |
SocketChannel.socket()
Retrieves a socket associated with this channel.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
RMIClientSocketFactory.createSocket(String
Create a client socket connected to the specified host and port.
|
abstract Socket |
RMISocketFactory.createSocket(String
Creates a client socket connected to the specified host and port.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
SocketFactory.createSocket()
Creates an unconnected socket.
|
abstract Socket |
SocketFactory.createSocket(InetAddress
Creates a socket and connects it to the specified port number at the specified address.
|
abstract Socket |
SocketFactory.createSocket(InetAddress
Creates a socket and connect it to the specified remote address on the specified remote port.
|
abstract Socket |
SocketFactory.createSocket(String
Creates a socket and connects it to the specified remote host at the specified remote port.
|
abstract Socket |
SocketFactory.createSocket(String
Creates a socket and connects it to the specified remote host on the specified remote port.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SSLSocket
This class extends
Sockets and provides secure socket using protocols such as the "Secure Sockets Layer" (SSL) or IETF "Transport Layer Security" (TLS) protocols.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
SSLSocketFactory.createSocket(Socket
Creates a server mode
Socket layered over an existing connected socket, and is able to read data which has already been consumed/removed from the
Socket's underlying
InputStream.
|
abstract Socket |
SSLSocketFactory.createSocket(Socket
Returns a socket layered over an existing socket connected to the named host, at the given port.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
X509ExtendedTrustManager.checkClientTrusted(X509Certificate
Given the partial or complete certificate chain provided by the peer, build and validate the certificate path based on the authentication type and ssl parameters.
|
abstract void |
X509ExtendedTrustManager.checkServerTrusted(X509Certificate
Given the partial or complete certificate chain provided by the peer, build and validate the certificate path based on the authentication type and ssl parameters.
|
String |
X509KeyManager.chooseClientAlias(String
Choose an alias to authenticate the client side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any).
|
String |
X509KeyManager.chooseServerAlias(String
Choose an alias to authenticate the server side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any).
|
Socket |
SSLSocketFactory.createSocket(Socket
Creates a server mode
Socket layered over an existing connected socket, and is able to read data which has already been consumed/removed from the
Socket's underlying
InputStream.
|
abstract Socket |
SSLSocketFactory.createSocket(Socket
Returns a socket layered over an existing socket connected to the named host, at the given port.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
SslRMIClientSocketFactory.createSocket(String
Creates an SSL socket.
|