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 authorization rules used by {@link SmartHostAuthorizer}. 012 * 013 * @author whoschek@lbl.gov 014 * @author $Author: hoschek3 $ 015 * @version $Revision: 1.1 $, $Date: 2004/06/17 05:39:00 $ 016 */ 017 public interface HostAuthorizationRules { 018 019 /** 020 * Returns whether or not the given host (aka InetAddress) matches ANY of 021 * the current rules. 022 * 023 * @return true if at least one rule matches; false otherwise 024 */ 025 public boolean isMatch(InetAddress address); 026 027 } 028