Bees v0.5.0 API

bees.core.security
Class Alias

java.lang.Object
  |
  +--bees.core.Capability
        |
        +--bees.core.security.GuardedStringCapability
              |
              +--bees.core.security.Alias
All Implemented Interfaces:
ObjectMap

public final class Alias
extends bees.core.security.GuardedStringCapability
implements ObjectMap


Fields inherited from class bees.core.Capability
DELETE_PERMISSION, id, INVALID_ID
 
Constructor Summary
Alias()
           
 
Method Summary
 java.util.Enumeration elements()
           
protected  void fromBytes(byte[] flattened)
          Bind this capability to the given object.
 java.lang.Object get(java.lang.Object key)
          Get an object mapping.
 java.util.Enumeration keys()
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 java.lang.Object remove(java.lang.Object key)
          Remove an object mapping.
 void revoke()
          Revoke access to the capability.
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class bees.core.Capability
checkPermission, clear, clonePermission, deleteCapability, equals, fromBytes, revokedPermission, revokePermission, revokePermissions, valid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Alias

public Alias()
Method Detail

revoke

public void revoke()
Description copied from class: Capability
Revoke access to the capability.
Overrides:
revoke in class bees.core.security.GuardedStringCapability
Following copied from class: bees.core.security.GuardedStringCapability
See Also:
Capability.revoke()

get

public java.lang.Object get(java.lang.Object key)
Description copied from interface: ObjectMap
Get an object mapping.
Specified by:
get in interface ObjectMap
Following copied from interface: bees.core.ObjectMap
Parameters:
key - The key of the object to get out of the mapping.
Returns:
The object matching the given key or null.

remove

public java.lang.Object remove(java.lang.Object key)
Description copied from interface: ObjectMap
Remove an object mapping.
Specified by:
remove in interface ObjectMap
Following copied from interface: bees.core.ObjectMap
Parameters:
key - The key of the object to remove from the mapping.
Returns:
The object matching the given key or null.

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Specified by:
put in interface ObjectMap
Following copied from interface: bees.core.ObjectMap
Parameters:
key - The key of the object to put in the mapping.
value - The object value to map.
Returns:
The previous object that was in this mapping.

keys

public java.util.Enumeration keys()
Specified by:
keys in interface ObjectMap
Following copied from interface: bees.core.ObjectMap
Returns:
An enumeration containing the keys in the mapping.

elements

public java.util.Enumeration elements()
Specified by:
elements in interface ObjectMap
Following copied from interface: bees.core.ObjectMap
Returns:
An enumeration containing the object values in the mapping.

size

public int size()
Specified by:
size in interface ObjectMap

toString

public java.lang.String toString()
Overrides:
toString in class bees.core.security.GuardedStringCapability
Following copied from class: bees.core.security.GuardedStringCapability
See Also:
Object.toString()

fromBytes

protected final void fromBytes(byte[] flattened)
                        throws java.lang.Exception
Description copied from class: Capability
Bind this capability to the given object.
Overrides:
fromBytes in class Capability
See Also:
Capability.fromBytes(byte[])

Bees v0.5.0 API

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/