--- experimental/server/ACL/ACLTest.java 2001/12/23 00:29:33 1.3 +++ experimental/server/ACL/ACLTest.java 2001/12/31 01:49:13 1.5 @@ -9,14 +9,23 @@ class ACLTest { // add some test rules acl.add(ACL.ALLOW, "*.ukc.ac.uk"); - acl.add(ACL.ALLOW, "129.12.*"); + acl.add(ACL.ALLOW, "129.12.*.*"); acl.add(ACL.ALLOW, "*.bishnet.net"); acl.add(ACL.ALLOW, "192.168.*"); + acl.add(ACL.ALLOW, "192.168.*.*"); + acl.add(ACL.ALLOW, "one.two.three.four.five.six.*"); + acl.add(ACL.ALLOW, "192.129.12.*.*"); + acl.add(ACL.ALLOW, "129.12.*"); + acl.add(ACL.ALLOW, "129.12.4"); + acl.add(ACL.ALLOW, "129.*"); + acl.add(ACL.ALLOW, "129*"); + acl.add(ACL.ALLOW, "*"); + acl.add(ACL.ALLOW, ""); // not really needed if we default to deny :) //acl.add(ACL.DENY, "*"); // dump our ACL to the console before serialization - System.out.println("BEFORE: "+acl.getStringACL()); + System.out.println("BEFORE: " + acl); // name for our serialized ACL String aclFilename = "aclfile"; @@ -47,7 +56,7 @@ class ACLTest { } // dump our ACL to the console after serialization - System.out.println("AFTER: "+acl.getStringACL()); + System.out.println("AFTER: " + acl); // run a few tests System.out.println("killigrew.ukc.ac.uk: " + acl.check("killigrew.ukc.ac.uk"));