001 /* 002 * Copyright (c) 2003, The Regents of the University of California, through 003 * Lawrence Berkeley National Laboratory (subject to receipt of any required 004 * approvals from the U.S. Dept. of Energy). All rights reserved. 005 */ 006 package gov.lbl.dsd.sea.nio.auth; 007 008 import java.net.InetAddress; 009 010 /** 011 * Interface for mechanism to query whether or not a given host is 012 * allowed to perform a certain action. 013 * 014 * @see SmartHostAuthorizer 015 * 016 * @author whoschek@lbl.gov 017 * @author $Author: hoschek3 $ 018 * @version $Revision: 1.1 $, $Date: 2004/06/17 05:39:00 $ 019 */ 020 public interface HostAuthorizer { 021 022 /** 023 * Returns whether or not the given host (aka InetAddress) is allowed to 024 * perform a certain action, depending on the current allow/deny rules. 025 * 026 * @param address the host attempting to be authorized 027 */ 028 public boolean isAllowed(InetAddress address); 029 030 }