Class ResourcePermission

  • java.lang.Object
    • org.apache.shiro.authz.permission.WildcardPermission
      • org.apache.geode.security.ResourcePermission
  • All Implemented Interfaces:
    java.io.Serializable, org.apache.shiro.authz.Permission

    @Immutable
    public class ResourcePermission
    extends org.apache.shiro.authz.permission.WildcardPermission
    ResourcePermission defines the resource, the operation, the region and the key involved in the action to be authorized. It is passed to the SecurityManager for the implementation to decide whether to grant a user this permission or not.
    See Also:
    Serialized Form
    • Method Detail

      • getResourceString

        public java.lang.String getResourceString()
        could be either "*", "NULL", "DATA", "CLUSTER"
        Returns:
        the resource as a String
      • getOperationString

        public java.lang.String getOperationString()
        Returns the operation, could be either "*", "NULL", "MANAGE", "WRITE" or "READ"
        Returns:
        the operation as a String
      • getTarget

        public java.lang.String getTarget()
        returns the regionName, or cluster target, could be "*", meaning all regions or all targets
        Returns:
        the regionName, or cluster target
      • getRegionName

        @Deprecated
        public java.lang.String getRegionName()
        Deprecated.
        use getTarget()
        Returns:
        the regionName, or cluster target
      • getKey

        public java.lang.String getKey()
        returns the key, could be "*" meaning all keys.
        Returns:
        the key
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class org.apache.shiro.authz.permission.WildcardPermission