পৃষ্ঠাসমূহ

.

Search Your Article

Total Pageviews

Thursday, January 19, 2017

Java.util.PropertyPermission Class

Introduction

The java.util.PropertyPermission class is a class for property permissions.Following are the important points about PropertyPermission:

  • The name is the name of the property ("java.home", "os.name", etc).
  • The naming convention follows the hierarchical property naming convention.An asterisk may appear at the end of the name, following a ".", or by itself, to signify a wildcard match.For example: "java.*" or "*" is valid, "*java" or "a*b" is not valid.

Class declaration

Following is the declaration for java.util.PropertyPermission class:
public final class PropertyPermission
   extends BasicPermission

Class constructors

S.N. Constructor & Description
1 PropertyPermission(String name, String actions)
This creates a new PropertyPermission object with the specified name.

Class methods

S.N. 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.

Methods inherited

This class inherits methods from the following classes:
  • java.util.Permission
  • java.util.Object

No comments:

Post a Comment