|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.security.Permission
org.norther.tammi.core.security.DefaultPermission
org.norther.tammi.core.security.ResourcePermission
org.norther.tammi.core.security.RegexPermission
public class RegexPermission
RegexpPermission represents access to server resources. A RegexPermission consists of a regular expression and a set of actions valid for that expression. The regular expression is a pattern to be matched to the name of the resource granted the specified actions.
| Field Summary |
|---|
| Fields inherited from class org.norther.tammi.core.security.DefaultPermission |
|---|
ALL, ALL_ACTION, ANY_ROLE, DELETE, DELETE_ACTION, EXECUTE, EXECUTE_ACTION, GROUP, GROUP_ACTION, NO_ACTION, NONE, OVERRIDE, OVERRIDE_ACTION, READ, READ_ACTION, READ_WRITE, READ_WRITE_ACTION, WRITE, WRITE_ACTION |
| Constructor Summary | |
|---|---|
RegexPermission(String regex,
int mask)
Constructs a new permission with a mask. |
|
RegexPermission(String regex,
int mask,
int options)
Constructs a new permission with a mask and compiler options. |
|
RegexPermission(String regex,
String actions)
Constructs a new permission with actions. |
|
RegexPermission(String regex,
String actions,
int options)
Constructs a new permission with actions and compiler options. |
|
| Method Summary | |
|---|---|
int |
getOptions()
Gets the compiler options. |
protected boolean |
impliesIgnoreMask(ResourcePermission p)
Checks if this permission object implies the specified permission when actions are ignored. |
| Methods inherited from class org.norther.tammi.core.security.ResourcePermission |
|---|
equals, getActions, hashCode, implies, newPermissionCollection |
| Methods inherited from class org.norther.tammi.core.security.DefaultPermission |
|---|
toActionMask, toActionString |
| Methods inherited from class java.security.Permission |
|---|
checkGuard, getName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RegexPermission(String regex,
String actions)
regex - the regular expression of the resource.actions - the action string.
IllegalArgumentException - for an invalid expression.
public RegexPermission(String regex,
String actions,
int options)
regex - the regular expression of the resource.actions - the action string.options - compiler options.
IllegalArgumentException - for an invalid expression.
public RegexPermission(String regex,
int mask)
regex - the regular expression of the resource.mask - the action mask to use.
IllegalArgumentException - for an invalid expression.
public RegexPermission(String regex,
int mask,
int options)
regex - the regular expression of the resource.mask - the action mask to use.options - the option mask to use.
IllegalArgumentException - for an invalid expression.| Method Detail |
|---|
public int getOptions()
protected boolean impliesIgnoreMask(ResourcePermission p)
impliesIgnoreMask in class ResourcePermissionp - the permission to check against.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||