English 中文(简体)
Java.lang - RuntimePermission
  • 时间:2024-12-22

Java.lang.RuntimePermission Class


Previous Page Next Page  

Introduction

The java.lang.RuntimePermission class is for runtime permissions. A RuntimePermission contains a name (also referred to as a "target name") but no actions pst; you either have the named permission or you don t.

Class Declaration

Following is the declaration for java.lang.RuntimePermission class −

pubpc final class RuntimePermission
   extends BasicPermission

Class constructors

Sr.No. Constructor & Description
1

RuntimePermission(String name)

This constructs a new RuntimePermission with the specified name.

2

RuntimePermission(String name, String actions)

This constructs a new RuntimePermission object with the specified name..

Class Methods

This class inherits methods from the following class −

    java.lang.BasicPermission

    java.lang.Permission

    java.lang.Object

Advertisements