anon.tor.ordescription
Class ORAcl

java.lang.Object
  extended by anon.tor.ordescription.ORAcl

public class ORAcl
extends java.lang.Object


Nested Class Summary
private  class ORAcl.AclElement
           
 
Field Summary
private  java.util.Vector m_Constraints
           
 
Constructor Summary
ORAcl()
          Constructor
 
Method Summary
 void add(java.lang.String acl)
          add a acl condition
 boolean isAllowed(int port)
          Checks if a port is allowed ignoring the ip
 boolean isAllowed(java.lang.String adr, int port)
          Checks if a nummeric ip and port is allowed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_Constraints

private java.util.Vector m_Constraints
Constructor Detail

ORAcl

public ORAcl()
Constructor

Method Detail

add

public void add(java.lang.String acl)
         throws java.lang.Exception
add a acl condition

Parameters:
acl - acl
Throws:
java.lang.Exception

isAllowed

public boolean isAllowed(java.lang.String adr,
                         int port)
Checks if a nummeric ip and port is allowed

Parameters:
adr - address
port - port

isAllowed

public boolean isAllowed(int port)
Checks if a port is allowed ignoring the ip

Parameters:
port - port