java.security.acl
Interface Permission


public interface Permission

This interface provides information about a permission that can be granted. Note that this is not the same as the class java.security.Permission.


Method Summary
 boolean equals(Object perm)
          This method tests whether or not a specified Permission (passed as an Object) is the same as this permission.
 String toString()
          This method returns this Permission as a String.
 

Method Detail

equals

boolean equals(Object perm)
This method tests whether or not a specified Permission (passed as an Object) is the same as this permission.

Overrides:
equals in class Object
Parameters:
perm - The permission to check for equality
Returns:
true if the specified permission is the same as this one, false otherwise
See Also:
Object.hashCode()

toString

String toString()
This method returns this Permission as a String.

Overrides:
toString in class Object
Returns:
A String representing this permission.
See Also:
Object.getClass(), Object.hashCode(), Class.getName(), Integer.toHexString(int)