KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > security > acl > Permission


1 /*
2  * @(#)Permission.java 1.13 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.security.acl;
9
10
11 /**
12  * This interface represents a permission, such as that used to grant
13  * a particular type of access to a resource.
14  *
15  * @author Satish Dharmaraj
16  */

17 public interface Permission {
18
19     /**
20      * Returns true if the object passed matches the permission represented
21      * in this interface.
22      *
23      * @param another the Permission object to compare with.
24      *
25      * @return true if the Permission objects are equal, false otherwise
26      */

27     public boolean equals(Object JavaDoc another);
28     
29     /**
30      * Prints a string representation of this permission.
31      *
32      * @return the string representation of the permission.
33      */

34     public String JavaDoc toString();
35
36 }
37
Popular Tags