Package ej.property

Class PropertyPermission

    • Constructor Detail

      • PropertyPermission

        public PropertyPermission​(java.lang.String parentName,
                                  java.lang.String key,
                                  java.lang.String action)
        Creates a permission for the given property.

        The action can be one of GET_ACTION, SET_ACTION or REMOVE_ACTION.

        Parameters:
        parentName - the name of the service loader or service registry.
        key - the property key.
        action - the action realized with the service.
    • Method Detail

      • getActions

        public java.lang.String getActions()
        Specified by:
        getActions in class java.security.Permission
      • getKey

        public java.lang.String getKey()
        Gets the property key handled by this permission.
        Returns:
        the property key.
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object obj)
        Specified by:
        equals in class java.security.Permission
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in class java.security.Permission
      • implies

        public boolean implies​(@Nullable
                               java.security.Permission permission)
        Specified by:
        implies in class java.security.Permission