Java.lang.RuntimePermission Class


Advertisements

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 list; you either have the named permission or you don't.

Class Declaration

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

public 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