bees.core.security
Class IntegerPermission
java.lang.Object
|
+--bees.core.security.Permission
|
+--bees.core.security.IntegerPermission
- All Implemented Interfaces:
- java.lang.Cloneable, edu.utah.janosvm.sys.CrossTeamCloneable, PermissionTypes
- Direct Known Subclasses:
- MaximumIntegerPermission, MinimumIntegerPermission
- public class IntegerPermission
- extends Permission
An IntegerPermission binds a permission name to an integer value.
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 |
IntegerPermission()
Construct an empty IntegerPermission. |
IntegerPermission(java.lang.String name,
long value)
Construct an IntegerPermission with the given values and a default
action value of "read, write, execute". |
IntegerPermission(java.lang.String name,
java.lang.String actions,
long value)
Construct an IntegerPermission with the given values. |
Methods inherited from class bees.core.security.Permission |
bound, clone, equals, getAction, getActionMask, getName, grant, implies, instantiate, instantiate, nameImplies, orActionMask, revoke, toBytes, updateHash |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IntegerPermission
public IntegerPermission(java.lang.String name,
java.lang.String actions,
long value)
- Construct an IntegerPermission with the given values.
- Parameters:
name
- The name of the permission.actions
- The actions granted by this permission.value
- The permission's integer value.
IntegerPermission
public IntegerPermission(java.lang.String name,
long value)
- Construct an IntegerPermission with the given values and a default
action value of "read, write, execute".
- Parameters:
name
- The name of the permission.value
- The permission's integer value.
IntegerPermission
public IntegerPermission()
- Construct an empty IntegerPermission.
getTypeID
public int getTypeID()
- Overrides:
getTypeID
in class Permission
- See Also:
Permission.getTypeID()
getValue
public long getValue()
- Returns:
- The permission's integer value.
verify
public long verify(long value)
- Verify an integer value.
- Parameters:
value
- The unverified integer value.- Returns:
- value, if it is valid.
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/