|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.security.impl.jacc.Permissions
public final class Permissions
Constructor Summary | |
---|---|
Permissions()
Creates a new Permissions object containing no PermissionCollections. |
Method Summary | |
---|---|
void |
add(java.security.Permission permission)
Adds a permission object to the PermissionCollection for the class the permission belongs to. |
boolean |
implies(java.security.Permission permission)
Checks to see if this object's PermissionCollection for permissions of the specified permission's type implies the permissions expressed in the permission object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Permissions()
Method Detail |
---|
public void add(java.security.Permission permission)
permission
- the Permission object to add.
java.lang.SecurityException
- if this Permissions object is marked as readonly.PermissionCollection.isReadOnly()
public boolean implies(java.security.Permission permission)
implies
method is called with a permission specifying both "read" and "write" access to files in
the "/tmp/scratch/foo" directory, true
is returned.
Additionally, if this PermissionCollection contains the AllPermission, this method will always return true.
permission
- the Permission object to check.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |