|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jwall.rbl.dns.RblSecurityManager
public class RblSecurityManager
This class implements an IP-based permission scheme. Permissions are read from a file in format
addr = permission
| Field Summary | |
|---|---|
static String |
ALL_PERMISSION
The string value representing all permissions |
static String |
BLOCK_PERMISSION
The string value of permission 'block' |
static String[] |
PERMISSIONS
This is the list of all available (assignable) permissions |
static String |
UNBLOCK_PERMISSION
The string value of permission 'unblock' |
| Method Summary | |
|---|---|
static RblSecurityManager |
getInstance()
This method returns the global RblSecurityManager instance. |
boolean |
hasPermission(InetAddress addr,
String perm)
Checks whether the given address addr has the specified
permission. |
void |
readPermissions(File file)
|
void |
readPermissions(InputStream inputStream)
Parse the given file and store all permissions in the global hash. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String BLOCK_PERMISSION
public static final String UNBLOCK_PERMISSION
public static final String ALL_PERMISSION
public static final String[] PERMISSIONS
| Method Detail |
|---|
public static RblSecurityManager getInstance()
public void readPermissions(File file)
throws Exception
Exception
public void readPermissions(InputStream inputStream)
throws Exception
file -
Exception
public boolean hasPermission(InetAddress addr,
String perm)
Checks whether the given address addr has the specified
permission.
addr - The address to check.perm - The permission which is queried for this address.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||