java.security.acl
Interface Permission


public interface Permission

This interface represents a permission, such as that used to grant a particular type of access to a resource.


Method Summary
 boolean equals sample code for java.security.acl.Permission.equals(java.lang.Object) definition code for java.security.acl.Permission.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  another)
          Returns true if the object passed matches the permission represented in this interface.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for java.security.acl.Permission.toString() definition code for java.security.acl.Permission.toString() ()
          Prints a string representation of this permission.
 

Method Detail

equals sample code for java.security.acl.Permission.equals(java.lang.Object) definition code for java.security.acl.Permission.equals(java.lang.Object)

boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  another)
Returns true if the object passed matches the permission represented in this interface.

Overrides:
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) in class Object sample code for java.lang.Object definition code for java.lang.Object
Parameters:
another - the Permission object to compare with.
Returns:
true if the Permission objects are equal, false otherwise
See Also:
Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

toString sample code for java.security.acl.Permission.toString() definition code for java.security.acl.Permission.toString()

String sample code for java.lang.String definition code for java.lang.String  toString()
Prints a string representation of this permission.

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
the string representation of the permission.