Class PermissionImpl

  • All Implemented Interfaces:
    java.security.acl.Permission
    Direct Known Subclasses:
    AllPermissionsImpl

    public class PermissionImpl
    extends java.lang.Object
    implements java.security.acl.Permission
    The PermissionImpl class implements the permission interface for permissions that are strings.
    Author:
    Satish Dharmaraj
    • Constructor Summary

      Constructors 
      Constructor Description
      PermissionImpl​(java.lang.String permission)
      Construct a permission object using a string.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object another)
      This function returns true if the object passed matches the permission represented in this interface.
      int hashCode()  
      java.lang.String toString()
      Prints a stringified version of the permission.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PermissionImpl

        public PermissionImpl​(java.lang.String permission)
        Construct a permission object using a string.
        Parameters:
        permission - the stringified version of the permission.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object another)
        This function returns true if the object passed matches the permission represented in this interface.
        Specified by:
        equals in interface java.security.acl.Permission
        Overrides:
        equals in class java.lang.Object
        Parameters:
        another - The Permission object to compare with.
        Returns:
        true if the Permission objects are equal, false otherwise
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Prints a stringified version of the permission.
        Specified by:
        toString in interface java.security.acl.Permission
        Overrides:
        toString in class java.lang.Object
        Returns:
        the string representation of the Permission.