public abstract class Permission extends Object implements Guard, Serializable
Constructor and Description |
---|
Permission(String name) |
Modifier and Type | Method and Description |
---|---|
void |
checkGuard(Object object)
Determines whether or not to allow access to the guarded object
object . |
abstract String |
getActions() |
String |
getName() |
abstract boolean |
implies(Permission permission) |
PermissionCollection |
newPermissionCollection() |
public Permission(String name)
public void checkGuard(Object object) throws SecurityException
Guard
object
. Returns silently if access is allowed.
Otherwise, throws a SecurityException.checkGuard
in interface Guard
object
- the object being protected by the guard.SecurityException
- if access is denied.public abstract boolean implies(Permission permission)
public final String getName()
public abstract String getActions()
public PermissionCollection newPermissionCollection()