public void checkHostsAuthorization()

in activeio-core/src/main/java/org/apache/activeio/xnet/hba/ServiceAccessController.java [60:75]


    public void checkHostsAuthorization(InetAddress clientAddress, InetAddress serverAddress) throws SecurityException {
        // Check the client ip against the server ip. Hosts are
        // allowed to access themselves, so if these ips
        // match, the following for loop will be skipped.
        if (clientAddress.equals(serverAddress)) {
            return;
        }

        for (int i = 0; i < allowHosts.length; i++) {
            if (allowHosts[i].implies(clientAddress)) {
                return;
            }
        }

        throw new SecurityException("Host " + clientAddress.getHostAddress() + " is not authorized to access this service.");
    }