protected void authenticate(Request request, JAcl acls[])
throws ProtocolException
{
Client client = request.getClient();
InetAddress inetaddress = client.getInetAddress();
IPMatcher ipmatcher = getIPMatcher();
System.out.println(">>> "+inetaddress);
if (ipmatcher.lookup(inetaddress) != null) {
// secure ip, basic auth
setValue(ATTR_SECURITY_LEVEL, new Integer(0));
} else {
// unsecure ip, digest auth
setValue(ATTR_SECURITY_LEVEL, new Integer(1));