SecurityManager to restrict SocketPermission to their application. By asserting that these
operations are privileged, the operations can proceed even if some code in the calling chain lacks the appropriate
SocketPermission.
| Modifier and Type | Field and Description |
|---|---|
| private static final Enumeration |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SocketChannel | |
| public static InetAddress | |
| public static Enumeration | |
| public static InetAddress[] | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static boolean | |
| private static <T> Enumeration | |
| public static byte[] | |
| public static SocketAddress | |
| public static InetAddress | |
| public static InetSocketAddress |
| EMPTY | back to summary |
|---|---|
| private static final Enumeration<Object> EMPTY | |
| SocketUtils | back to summary |
|---|---|
| private SocketUtils() | |
| accept | back to summary |
|---|---|
| public static SocketChannel accept(final ServerSocketChannel serverSocketChannel) throws IOException | |
| addressByName | back to summary |
|---|---|
| public static InetAddress addressByName(final String hostname) throws UnknownHostException | |
| addressesFromNetworkInterface | back to summary |
|---|---|
| public static Enumeration | |
| allAddressesByName | back to summary |
|---|---|
| public static InetAddress[] allAddressesByName(final String hostname) throws UnknownHostException | |
| bind | back to summary |
|---|---|
| public static void bind(final Socket socket, final SocketAddress bindpoint) throws IOException | |
| bind | back to summary |
|---|---|
public static void bind(final SocketChannel socketChannel, final SocketAddress address) throws IOException
| |
| bind | back to summary |
|---|---|
public static void bind(final DatagramChannel networkChannel, final SocketAddress address) throws IOException
| |
| connect | back to summary |
|---|---|
| public static void connect(final Socket socket, final SocketAddress remoteAddress, final int timeout) throws IOException | |
| connect | back to summary |
|---|---|
| public static boolean connect(final SocketChannel socketChannel, final SocketAddress remoteAddress) throws IOException | |
| empty | back to summary |
|---|---|
private static <T> Enumeration
| |
| hardwareAddressFromNetworkInterface | back to summary |
|---|---|
| public static byte[] hardwareAddressFromNetworkInterface(final NetworkInterface intf) throws SocketException | |
| localSocketAddress | back to summary |
|---|---|
| public static SocketAddress localSocketAddress(final ServerSocket socket) | |
| loopbackAddress | back to summary |
|---|---|
public static InetAddress loopbackAddress()
| |
| socketAddress | back to summary |
|---|---|
| public static InetSocketAddress socketAddress(final String hostname, final int port) | |