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
booleanequals(Object perm)
This method tests whether or not a specified Permission (passed as an Object) is the same as this permission.
StringtoString()
This method returns this Permission as a String.

Method Detail

equals

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

Parameters: perm The permission to check for equality

Returns: true if the specified permission is the same as this one, false otherwise

toString

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

Returns: A String representing this permission.