|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.tor.ordescription.ORAcl
public class ORAcl
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 |
---|
private java.util.Vector m_Constraints
Constructor Detail |
---|
public ORAcl()
Method Detail |
---|
public void add(java.lang.String acl) throws java.lang.Exception
acl
- acl
java.lang.Exception
public boolean isAllowed(java.lang.String adr, int port)
adr
- addressport
- portpublic boolean isAllowed(int port)
port
- port
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |