check
public static void check()
Checks whether a call was made by a local host.
Specifically, this means that if, in the dispatched call,
there is a ServerContext and it contains an element
that is an instance of ClientHost, then if the InetAddress
returned by ClientHost.getClientHost is not a local
network interface (according to NetworkInterface.getByInetAddress)
or not a loopback address
(according to NetworkInterface.isLoopBackAddress),
the call will be rejected; in all other cases,
the call will be accepted.
- Throws:
AccessControlException - when the origin is not a local host