| Package | Description |
|---|---|
| java.lang |
Provides classes that are fundamental to the design of the Java programming language.
|
| 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.
|
| javax.net |
Provides classes for networking applications.
|
| javax.net.ssl |
Provides classes for the secure socket package.
|
| javax.security.auth.kerberos |
This package contains utility classes related to the Kerberos network authentication protocol.
|
| org.ietf.jgss |
This package presents a framework that allows application developers to make use of security services like authentication, data integrity and data confidentiality from a variety of underlying security mechanisms like Kerberos, using a unified API.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SecurityManager.checkMulticast(InetAddress
Throws a
SecurityException if the calling thread is not allowed to use (join/leave/send/receive) IP multicast.
|
void |
SecurityManager.checkMulticast(InetAddress
Deprecated.
Use #checkPermission(java.security.Permission) instead
|
| Modifier and Type | Class and Description |
|---|---|
class |
Inet4Address
This class represents an Internet Protocol version 4 (IPv4) address.
|
class |
Inet6Address
This class represents an Internet Protocol version 6 (IPv6) address.
|
| Modifier and Type | Field and Description |
|---|---|
protected InetAddress |
SocketImpl.address
The IP address of the remote end of this socket.
|
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
DatagramPacket.getAddress()
Returns the IP address of the machine to which this datagram is being sent or from which the datagram was received.
|
InetAddress |
InterfaceAddress.getAddress()
Returns an
InetAddress for this address.
|
InetAddress |
InetSocketAddress.getAddress()
Gets the
InetAddress.
|
static InetAddress |
InetAddress.getAllByName(String
Given the name of a host, returns an array of its IP addresses, based on the configured name service on the system.
|
InetAddress |
InterfaceAddress.getBroadcast()
Returns an
InetAddress for the broadcast address for this InterfaceAddress.
|
static InetAddress |
InetAddress.getByAddress(byte[] addr)
Returns an
InetAddress object given the raw IP address .
|
static InetAddress |
InetAddress.getByAddress(String
Creates an InetAddress based on the provided host name and IP address.
|
static InetAddress |
InetAddress.getByName(String
Determines the IP address of a host, given the host's name.
|
protected InetAddress |
URLStreamHandler.getHostAddress(URL
Get the IP address of our host.
|
InetAddress |
Socket.getInetAddress()
Returns the address to which the socket is connected.
|
InetAddress |
DatagramSocket.getInetAddress()
Returns the address to which this socket is connected.
|
InetAddress |
ServerSocket.getInetAddress()
Returns the local address of this server socket.
|
protected InetAddress |
SocketImpl.getInetAddress()
Returns the value of this socket's
address field.
|
InetAddress |
MulticastSocket.getInterface()
Retrieve the address of the network interface used for multicast packets.
|
InetAddress |
Socket.getLocalAddress()
Gets the local address to which the socket is bound.
|
InetAddress |
DatagramSocket.getLocalAddress()
Gets the local address to which the socket is bound.
|
static InetAddress |
InetAddress.getLocalHost()
Returns the address of the local host.
|
static InetAddress |
InetAddress.getLoopbackAddress()
Returns the loopback address.
|
protected InetAddress |
Authenticator.getRequestingSite()
Gets the
InetAddress of the site requesting authorization, or
null if not available.
|
| Modifier and Type | Method and Description |
|---|---|
Enumeration |
NetworkInterface.getInetAddresses()
Convenience method to return an Enumeration with all or a subset of the InetAddresses bound to this network interface.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
SocketImpl.bind(InetAddress
Binds this socket to the specified local IP address and port number.
|
protected abstract void |
DatagramSocketImpl.bind(int lport, InetAddress
Binds a datagram socket to a local port and address.
|
void |
DatagramSocket.connect(InetAddress
Connects the socket to a remote address for this socket.
|
protected abstract void |
SocketImpl.connect(InetAddress
Connects this socket to the specified port number on the specified host.
|
protected void |
DatagramSocketImpl.connect(InetAddress
Connects a datagram socket to a remote destination.
|
static NetworkInterface |
NetworkInterface.getByInetAddress(InetAddress
Convenience method to search for a network interface that has the specified Internet Protocol (IP) address bound to it.
|
protected abstract void |
DatagramSocketImpl.join(InetAddress
Join the multicast group.
|
void |
MulticastSocket.joinGroup(InetAddress
Joins a multicast group.
|
protected abstract void |
DatagramSocketImpl.leave(InetAddress
Leave the multicast group.
|
void |
MulticastSocket.leaveGroup(InetAddress
Leave a multicast group.
|
protected abstract int |
DatagramSocketImpl.peek(InetAddress
Peek at the packet to see who it is from.
|
static PasswordAuthentication |
Authenticator.requestPasswordAuthentication(InetAddress
Ask the authenticator that has been registered with the system for a password.
|
static PasswordAuthentication |
Authenticator.requestPasswordAuthentication(String
Ask the authenticator that has been registered with the system for a password.
|
static PasswordAuthentication |
Authenticator.requestPasswordAuthentication(String
Ask the authenticator that has been registered with the system for a password.
|
void |
DatagramPacket.setAddress(InetAddress
Sets the IP address of the machine to which this datagram is being sent.
|
void |
MulticastSocket.setInterface(InetAddress
Set the multicast network interface used by methods whose behavior would be affected by the value of the network interface.
|
| Constructor and Description | |
|---|---|
DatagramPacket(byte[] buf, int length, InetAddress
Constructs a datagram packet for sending packets of length
length to the specified port number on the specified host.
|
|
DatagramPacket(byte[] buf, int offset, int length, InetAddress
Constructs a datagram packet for sending packets of length
length with offset
ioffsetto the specified port number on the specified host.
|
|
DatagramSocket(int port, InetAddress
Creates a datagram socket, bound to the specified local address.
|
|
InetSocketAddress(InetAddress
Creates a socket address from an IP address and a port number.
|
|
ServerSocket(int port, int backlog, InetAddress
Create a server with the specified port, listen backlog, and local IP address to bind to.
|
|
Socket(InetAddress
Creates a stream socket and connects it to the specified port number at the specified IP address.
|
|
Socket(InetAddress
Deprecated.
Use DatagramSocket instead for UDP transport.
|
|
Socket(InetAddress
Creates a socket and connects it to the specified remote address on the specified remote port.
|
|
Socket(String
Creates a socket and connects it to the specified remote host on the specified remote port.
|
| Modifier and Type | Method and Description |
|---|---|
abstract InetAddress |
MembershipKey.group()
Returns the multicast group for which this membership key was created.
|
abstract InetAddress |
MembershipKey.sourceAddress()
Returns the source address if this membership key is source-specific, or
null if this membership is not source-specific.
|
| Modifier and Type | Method and Description |
|---|---|
abstract MembershipKey |
MembershipKey.block(InetAddress
Block multicast datagrams from the given source address.
|
MembershipKey |
MulticastChannel.join(InetAddress
Joins a multicast group to begin receiving all datagrams sent to the group, returning a membership key.
|
MembershipKey |
MulticastChannel.join(InetAddress
Joins a multicast group to begin receiving datagrams sent to the group from a given source address.
|
abstract MembershipKey |
MembershipKey.unblock(InetAddress
Unblock multicast datagrams from the given source address that was previously blocked using the
block method.
|
| Modifier and Type | Method and Description |
|---|---|
abstract ServerSocket |
ServerSocketFactory.createServerSocket(int port, int backlog, InetAddress
Returns a server socket bound to the specified port, with a specified listen backlog and local IP.
|
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 on the specified remote port.
|
| Constructor and Description | |
|---|---|
SSLServerSocket(int port, int backlog, InetAddress
Used only by subclasses.
|
|
SSLSocket(InetAddress
Used only by subclasses.
|
|
SSLSocket(InetAddress
Used only by subclasses.
|
|
SSLSocket(String
Used only by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
KerberosTicket.getClientAddresses()
Returns a list of addresses from where the ticket can be used.
|
| Constructor and Description | |
|---|---|
KerberosTicket(byte[] asn1Encoding, KerberosPrincipal
Constructs a KerberosTicket using credentials information that a client either receives from a KDC or reads from a cache.
|
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
ChannelBinding.getAcceptorAddress()
Get the acceptor's address for this channel binding.
|
InetAddress |
ChannelBinding.getInitiatorAddress()
Get the initiator's address for this channel binding.
|
| Constructor and Description | |
|---|---|
ChannelBinding(InetAddress
Create a ChannelBinding object with user supplied address information and data.
|