public final class

SecurityPermission

extends BasicPermission
java.lang.Object
   ↳ java.security.Permission
     ↳ java.security.BasicPermission
       ↳ java.security.SecurityPermission

Class Overview

SecurityPermission objects guard access to the mechanisms which implement security. Security permissions have names, but not actions.

Summary

Public Constructors
SecurityPermission(String name)
Constructs a new instance of SecurityPermission with the given name.
SecurityPermission(String name, String action)
Constructs a new instance of SecurityPermission with the given name and action list.
[Expand]
Inherited Methods
From class java.security.BasicPermission
From class java.security.Permission
From class java.lang.Object
From interface java.security.Guard

Public Constructors

public SecurityPermission (String name)

Since: API Level 1

Constructs a new instance of SecurityPermission with the given name.

Parameters
name the name of the permission.

public SecurityPermission (String name, String action)

Since: API Level 1

Constructs a new instance of SecurityPermission with the given name and action list. The action list is ignored - it is existing for compatibility reasons only.

Parameters
name the name of the permission.
action ignored.