|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.Permission org.jboss.portal.security.PortalPermission org.jboss.portal.core.security.InstancePermission
Portal permission class for authorisation checks.
This class is an extension to the JACC mechanism to allow configurable and dynamically modifiable permissions.
Note: for now this is a final class. We might want to have subclasses of it later though.
Field Summary | |
static java.lang.String |
VIEW
The view action. |
Constructor Summary | |
InstancePermission(java.lang.String uri,
java.lang.String actions)
Create a permission for the specified resource. |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getActions()
|
java.lang.String |
getType()
Return the permission type. |
java.lang.String |
getURI()
Return the resource identifier of this permission. |
int |
hashCode()
|
boolean |
implies(java.security.Permission permission)
|
java.security.PermissionCollection |
newPermissionCollection()
|
java.lang.String |
toString()
|
Methods inherited from class java.security.Permission |
checkGuard, getName |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String VIEW
Constructor Detail |
public InstancePermission(java.lang.String uri, java.lang.String actions)
uri
- handle of the resource that is being protected.actions
- the allowed actions (or the actions to check for access) as a comma separated list
java.lang.IllegalArgumentException
- if the provided arguments are null or the actions string
doesn't contain any valid actionsMethod Detail |
public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String toString()
public java.lang.String getActions()
public java.lang.String getURI()
PortalPermission
getURI
in class PortalPermission
public boolean implies(java.security.Permission permission)
public java.security.PermissionCollection newPermissionCollection()
public java.lang.String getType()
PortalPermission
getType
in class PortalPermission
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |