bees.core.security
Class RangePermission
java.lang.Object
|
+--bees.core.security.Permission
|
+--bees.core.security.RangePermission
- All Implemented Interfaces:
- java.lang.Cloneable, edu.utah.janosvm.sys.CrossTeamCloneable, PermissionTypes
- public class RangePermission
- extends Permission
A RangePermission restricts access based on ranges of integers.
Fields inherited from interface bees.core.security.PermissionTypes |
PERMISSION_BASIC, PERMISSION_CLASSES, PERMISSION_COUNT, PERMISSION_ENUMERATION, PERMISSION_FILE, PERMISSION_FLOAT, PERMISSION_INTEGER, PERMISSION_IP_ADDRESS, PERMISSION_MAX, PERMISSION_MAX_FLOAT, PERMISSION_MAX_INTEGER, PERMISSION_MIN, PERMISSION_MIN_FLOAT, PERMISSION_MIN_INTEGER, PERMISSION_NULL, PERMISSION_RANGE |
Constructor Summary |
RangePermission()
Construct an empty RangePermission. |
RangePermission(java.lang.String name,
java.lang.String actions)
Construct a RangePermission with the given values and empty set of
ranges. |
RangePermission(java.lang.String name,
java.lang.String actions,
long start,
long length)
Construct a RangePermission with the given values. |
Methods inherited from class bees.core.security.Permission |
clone, equals, getAction, getActionMask, getName, instantiate, instantiate, nameImplies, orActionMask, toBytes, updateHash |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RangePermission
public RangePermission(java.lang.String name,
java.lang.String actions)
- Construct a RangePermission with the given values and empty set of
ranges.
- Parameters:
name
- The name of the permission.actions
- The actions allowed for this permission.
RangePermission
public RangePermission(java.lang.String name,
java.lang.String actions,
long start,
long length)
- Construct a RangePermission with the given values.
- Parameters:
name
- The name of the permission.actions
- The actions allowed for this permission.start
- The start of the range.length
- The length of the range.
RangePermission
public RangePermission()
- Construct an empty RangePermission.
getTypeID
public int getTypeID()
- Overrides:
getTypeID
in class Permission
- See Also:
Permission.getTypeID()
getValue
public java.lang.String getValue()
implies
public boolean implies(Permission what)
- Description copied from class:
Permission
- Test whether this permission implies the given permission. For
example, read/write implies the read permission. Names are
case-insensitive.
- Overrides:
implies
in class Permission
- See Also:
Permission.implies(Permission)
grant
public void grant(Permission what)
- Description copied from class:
Permission
- Grant the actions in "what" to this permission.
- Overrides:
grant
in class Permission
- See Also:
Permission.grant(Permission)
revoke
public void revoke(Permission what)
- Description copied from class:
Permission
- Revoke the actions in "what" from this permission.
- Overrides:
revoke
in class Permission
- See Also:
Permission.revoke(Permission)
bound
public void bound(Permission what)
- Description copied from class:
Permission
- Bound this permission's actions to the ones available in what. In other
words, the actions available in this permission will be less than or
equal to those in "what".
- Overrides:
bound
in class Permission
- See Also:
Permission.bound(Permission)
marshalledLength
public int marshalledLength()
- Overrides:
marshalledLength
in class Permission
- See Also:
Permission.marshalledLength()
marshal
public void marshal(XdrByteArray xba)
- Description copied from class:
Permission
- Marshal this object into the given byte array.
- Overrides:
marshal
in class Permission
- See Also:
Permission.marshal(XdrByteArray)
unmarshal
public void unmarshal(XdrByteArray xba)
- Description copied from class:
Permission
- Unmarshal this object from the given byte array.
- Overrides:
unmarshal
in class Permission
- See Also:
Permission.unmarshal(XdrByteArray)
toString
public java.lang.String toString()
- Overrides:
toString
in class Permission
- See Also:
Object.toString()
This documentation is Copyright (C) 2002 The University of Utah. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for Bees v0.5.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/