org.apache.avalon.meta.info
Class SecurityDescriptor

java.lang.Object
  extended byorg.apache.avalon.meta.info.Descriptor
      extended byorg.apache.avalon.meta.info.SecurityDescriptor
All Implemented Interfaces:
Serializable

public final class SecurityDescriptor
extends Descriptor

This class is used to provide security information to assembler and administrator about the component type.

The SecurityDescriptor also includes an arbitrary set of attributes about component. Usually these are container specific attributes that can store arbitrary information. The attributes should be stored with keys based on package name of container.

Version:
$Revision: 1.3 $ $Date: 2004/03/17 10:50:03 $
Author:
Avalon Development Team
See Also:
Serialized Form

Constructor Summary
SecurityDescriptor(PermissionDescriptor[] permissions, Properties attributes)
          Creation of a new info descriptor using a supplied name, key, version and attribute set.
 
Method Summary
 boolean equals(Object other)
          Test is the supplied object is equal to this object.
 PermissionDescriptor[] getPermissions()
          Return the set of permissions requested by the component type.
 int hashCode()
          Return the hashcode for the object.
 String toString()
           
 
Methods inherited from class org.apache.avalon.meta.info.Descriptor
getAttribute, getAttribute, getAttributeNames, getProperties
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecurityDescriptor

public SecurityDescriptor(PermissionDescriptor[] permissions,
                          Properties attributes)
Creation of a new info descriptor using a supplied name, key, version and attribute set.

Parameters:
permissions - the set of permissions
attributes - supplimentary security attributes
Since:
1.4
Method Detail

getPermissions

public PermissionDescriptor[] getPermissions()
Return the set of permissions requested by the component type.

Returns:
the permissions

equals

public boolean equals(Object other)
Test is the supplied object is equal to this object.

Overrides:
equals in class Descriptor
Parameters:
other - the object to compare this object with
Returns:
true if the object are equivalent

hashCode

public int hashCode()
Return the hashcode for the object.

Overrides:
hashCode in class Descriptor
Returns:
the hashcode value

toString

public String toString()


Copyright © The Apache Software Foundation. All Rights Reserved.