📜  Java.util.PropertyPermission类

📅  最后修改于: 2020-11-14 06:21:27             🧑  作者: Mango


介绍

java.util.PropertyPermission类是属性权限的类。以下是有关PropertyPermission的要点-

  • 名称是属性的名称(“ java.home”,“ os.name”等)。

  • 命名约定遵循分层属性的命名约定。名称的末尾可能会出现一个星号,在“。”之后或单独使用一个星号表示通配符匹配。例如:“ java。*”或“ *”是有效,“ * java”或“ a * b”无效。

类声明

以下是java.util.PropertyPermission类的声明-

public final class PropertyPermission
   extends BasicPermission

类的构造函数

Sr.No. Constructor & Description
1

PropertyPermission(String name, String actions)

This creates a new PropertyPermission object with the specified name.

类方法

Sr.No. Method & Description
1 boolean equals(Object obj)

This method checks two PropertyPermission objects for equality.

2 String getActions()

This method returns the “canonical string representation” of the actions.

3 int hashCode()

This method returns the hash code value for this object.

4 boolean implies(Permission p)

This method checks if this PropertyPermission object “implies” the specified permission.

5 PermissionCollection newPermissionCollection()

This method returns a returns a new PermissionCollection object for storing PropertyPermission objects.

方法继承

此类从以下类继承方法-

  • java.util.Permission
  • java.util.Object