1. /*
  2. * @(#)Permission.java 1.10 00/02/02
  3. *
  4. * Copyright 1996-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.security.acl;
  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. * Returns true if the object passed matches the permission represented
  20. * in this interface.
  21. *
  22. * @param another the Permission object to compare with.
  23. *
  24. * @return true if the Permission objects are equal, false otherwise
  25. */
  26. public boolean equals(Object another);
  27. /**
  28. * Prints a string representation of this permission.
  29. *
  30. * @return the string representation of the permission.
  31. */
  32. public String toString();
  33. }