# Uses of Class
java.security.Permission

Packages that use Permission
Package
Description
com.sun.jdi
This is the core package of the Java Debug Interface (JDI), it defines mirrors for values, types, and the target VirtualMachine itself - as well bootstrapping facilities.
com.sun.security.jgss
This package defines classes and interfaces for the JDK extensions to the GSS-API.
com.sun.tools.attach
Provides the API to attach to a Java virtual machine.
java.awt
Contains all of the classes for creating user interfaces and for painting graphics and images.
java.io
Provides for system input and output through data streams, serialization and the file system.
java.lang
Provides classes that are fundamental to the design of the Java programming language.
java.lang.management
Provides the management interfaces for monitoring and management of the Java virtual machine and other components in the Java runtime.
java.lang.reflect
Provides classes and interfaces for obtaining reflective information about classes and objects.
java.net
Provides the classes for implementing networking applications.
java.nio.file
Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.
java.security
Provides the classes and interfaces for the security framework.
java.sql
Provides the API for accessing and processing data stored in a data source (usually a relational database) using the Java programming language.
java.util
Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.
java.util.logging
Provides the classes and interfaces of the Java 2 platform's core logging facilities.
javax.management
Provides the core classes for the Java Management Extensions.
javax.management.remote
Interfaces for remote access to JMX MBean servers.
javax.net.ssl
Provides classes for the secure socket package.
javax.security.auth
This package provides a framework for authentication and authorization.
javax.security.auth.kerberos
This package contains utility classes related to the Kerberos network authentication protocol.
javax.smartcardio
Java™ Smart Card I/O API.
javax.sound.sampled
Provides interfaces and classes for capture, processing, and playback of sampled audio data.
jdk.jfr
This package provides classes to create events and control Flight Recorder.
jdk.net
Platform specific socket options for the `java.net` and `java.nio.channels` socket classes.

- ## Uses of Permission in com.sun.jdi

  Subclasses of Permission in com.sun.jdi
  Modifier and Type
  Class
  Description
  `final class`
  `JDIPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This class was only useful in conjunction with the Security Manager, which is no longer supported.

- ## Uses of Permission in com.sun.security.jgss

  Subclasses of Permission in com.sun.security.jgss
  Modifier and Type
  Class
  Description
  `final class`
  `InquireSecContextPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.

- ## Uses of Permission in com.sun.tools.attach

  Subclasses of Permission in com.sun.tools.attach
  Modifier and Type
  Class
  Description
  `final class`
  `AttachPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This class was only useful in conjunction with the Security Manager, which is no longer supported.

- ## Uses of Permission in java.awt

  Subclasses of Permission in java.awt
  Modifier and Type
  Class
  Description
  `final class`
  `AWTPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  There is no replacement for this class.

- ## Uses of Permission in java.io

  Subclasses of Permission in java.io
  Modifier and Type
  Class
  Description
  `final class`
  `FilePermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
  `final class`
  `SerializablePermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
  Methods in java.io with parameters of type Permission
  Modifier and Type
  Method
  Description
  `boolean`
  FilePermission.`implies(Permission p)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Checks if this FilePermission object "implies" the specified permission.

- ## Uses of Permission in java.lang

  Subclasses of Permission in java.lang
  Modifier and Type
  Class
  Description
  `final class`
  `RuntimePermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
  Methods in java.lang with parameters of type Permission
  Modifier and Type
  Method
  Description
  `void`
  SecurityManager.`checkPermission(Permission perm)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Throws `SecurityException`.
  `void`
  SecurityManager.`checkPermission(Permission perm, Object context)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Throws `SecurityException`.

- ## Uses of Permission in java.lang.management

  Subclasses of Permission in java.lang.management
  Modifier and Type
  Class
  Description
  `final class`
  `ManagementPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This class was only useful in conjunction with the Security Manager, which is no longer supported.

- ## Uses of Permission in java.lang.reflect

  Subclasses of Permission in java.lang.reflect
  Modifier and Type
  Class
  Description
  `final class`
  `ReflectPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.

- ## Uses of Permission in java.net

  Subclasses of Permission in java.net
  Modifier and Type
  Class
  Description
  `final class`
  `NetPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
  `final class`
  `SocketPermission`
  This class represents access to a network via sockets.
  `final class`
  `URLPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
  Methods in java.net that return Permission
  Modifier and Type
  Method
  Description
  `Permission`
  HttpURLConnection.`getPermission()`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Permissions can no longer be used for controlling access to resources as the Security Manager is no longer supported.
  `Permission`
  URLConnection.`getPermission()`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Permissions can no longer be used for controlling access to resources as the Security Manager is no longer supported.
  Methods in java.net with parameters of type Permission
  Modifier and Type
  Method
  Description
  `boolean`
  SocketPermission.`implies(Permission p)`
  Checks if this socket permission object "implies" the specified permission.
  `boolean`
  URLPermission.`implies(Permission p)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Checks if this URLPermission implies the given permission.

- ## Uses of Permission in java.nio.file

  Subclasses of Permission in java.nio.file
  Modifier and Type
  Class
  Description
  `final class`
  `LinkPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.

- ## Uses of Permission in java.security

  Subclasses of Permission in java.security
  Modifier and Type
  Class
  Description
  `final class`
  `AllPermission`
  The `AllPermission` is a permission that implies all other permissions.
  `class`
  `BasicPermission`
  The `BasicPermission` class extends the `Permission` class, and can be used as the base class for permissions that want to follow the same naming convention as `BasicPermission`.
  `final class`
  `SecurityPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
  `final class`
  `UnresolvedPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
  Methods in java.security that return Permission
  Modifier and Type
  Method
  Description
  `Permission`
  AccessControlException.`getPermission()`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Gets the `Permission` object associated with this exception, or `null` if there was no corresponding `Permission` object.
  Methods in java.security that return types with arguments of type Permission
  Modifier and Type
  Method
  Description
  `abstract Enumeration<Permission>`
  PermissionCollection.`elements()`
  Returns an enumeration of all the Permission objects in the collection.
  `Enumeration<Permission>`
  Permissions.`elements()`
  Returns an enumeration of all the `Permission` objects in all the `PermissionCollection` objects in this `Permissions` object.
  `Stream<Permission>`
  PermissionCollection.`elementsAsStream()`
  Returns a stream of all the Permission objects in the collection.
  Methods in java.security with parameters of type Permission
  Modifier and Type
  Method
  Description
  `abstract void`
  PermissionCollection.`add(Permission permission)`
  Adds a permission object to the current collection of permission objects.
  `void`
  Permissions.`add(Permission permission)`
  Adds a `Permission` object to the `PermissionCollection` for the class the permission belongs to.
  `void`
  AccessControlContext.`checkPermission(Permission perm)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Throws `AccessControlException`.
  `static void`
  AccessController.`checkPermission(Permission perm)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Throws `AccessControlException`.
  `static <T> T`
  AccessController.`doPrivileged(PrivilegedAction<T> action, AccessControlContext context, Permission... perms)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Performs the specified action.
  `static <T> T`
  AccessController.`doPrivileged(PrivilegedExceptionAction<T> action, AccessControlContext context, Permission... perms)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Performs the specified action.
  `static <T> T`
  AccessController.`doPrivilegedWithCombiner(PrivilegedAction<T> action, AccessControlContext context, Permission... perms)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Performs the specified action.
  `static <T> T`
  AccessController.`doPrivilegedWithCombiner(PrivilegedExceptionAction<T> action, AccessControlContext context, Permission... perms)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Performs the specified action.
  `protected abstract boolean`
  PolicySpi.`engineImplies(ProtectionDomain domain, Permission permission)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Check whether the policy has granted a Permission to a ProtectionDomain.
  `boolean`
  AllPermission.`implies(Permission p)`
  Checks if the specified permission is "implied" by this object.
  `boolean`
  BasicPermission.`implies(Permission p)`
  Checks if the specified permission is "implied" by this object.
  `abstract boolean`
  Permission.`implies(Permission permission)`
  Checks if the specified permission's actions are "implied by" this object's actions.
  `abstract boolean`
  PermissionCollection.`implies(Permission permission)`
  Checks to see if the specified permission is implied by the collection of `Permission` objects held in this `PermissionCollection`.
  `boolean`
  Permissions.`implies(Permission permission)`
  Checks to see if this object's `PermissionCollection` for permissions of the specified permission's class implies the permissions expressed in the permission object.
  `boolean`
  Policy.`implies(ProtectionDomain domain, Permission permission)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Evaluates the permissions granted to the ProtectionDomain and tests whether the permission is granted.
  `boolean`
  ProtectionDomain.`implies(Permission perm)`
  Check and see if this `ProtectionDomain` implies the permissions expressed in the `Permission` object.
  `boolean`
  UnresolvedPermission.`implies(Permission p)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This method always returns `false` for unresolved permissions.
  Constructors in java.security with parameters of type Permission
  Modifier
  Constructor
  Description
  ``
  `AccessControlException(String s, Permission p)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Constructs an `AccessControlException` with the specified, detailed message, and the requested permission that caused the exception.

- ## Uses of Permission in java.sql

  Subclasses of Permission in java.sql
  Modifier and Type
  Class
  Description
  `final class`
  `SQLPermission`
  A `SQLPermission` object contains a name (also referred to as a "target name") but no actions list; there is either a named permission or there is not.

- ## Uses of Permission in java.util

  Subclasses of Permission in java.util
  Modifier and Type
  Class
  Description
  `final class`
  `PropertyPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
  Methods in java.util with parameters of type Permission
  Modifier and Type
  Method
  Description
  `boolean`
  PropertyPermission.`implies(Permission p)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Checks if this PropertyPermission object "implies" the specified permission.

- ## Uses of Permission in java.util.logging

  Subclasses of Permission in java.util.logging
  Modifier and Type
  Class
  Description
  `final class`
  `LoggingPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.

- ## Uses of Permission in javax.management

  Subclasses of Permission in javax.management
  Modifier and Type
  Class
  Description
  `class`
  `MBeanPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This class was only useful in conjunction with the Security Manager, which is no longer supported.
  `class`
  `MBeanServerPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This class was only useful in conjunction with the Security Manager, which is no longer supported.
  `class`
  `MBeanTrustPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This class was only useful in conjunction with the Security Manager, which is no longer supported.
  Methods in javax.management with parameters of type Permission
  Modifier and Type
  Method
  Description
  `boolean`
  MBeanPermission.`implies(Permission p)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Checks if this MBeanPermission object "implies" the specified permission.
  `boolean`
  MBeanServerPermission.`implies(Permission p)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Checks if this MBeanServerPermission object "implies" the specified permission.

- ## Uses of Permission in javax.management.remote

  Subclasses of Permission in javax.management.remote
  Modifier and Type
  Class
  Description
  `final class`
  `SubjectDelegationPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This class was only useful in conjunction with the Security Manager, which is no longer supported.

- ## Uses of Permission in javax.net.ssl

  Subclasses of Permission in javax.net.ssl
  Modifier and Type
  Class
  Description
  `final class`
  `SSLPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.

- ## Uses of Permission in javax.security.auth

  Subclasses of Permission in javax.security.auth
  Modifier and Type
  Class
  Description
  `final class`
  `AuthPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
  `final class`
  `PrivateCredentialPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
  Methods in javax.security.auth with parameters of type Permission
  Modifier and Type
  Method
  Description
  `boolean`
  PrivateCredentialPermission.`implies(Permission p)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Checks if this `PrivateCredentialPermission` implies the specified `Permission`.

- ## Uses of Permission in javax.security.auth.kerberos

  Subclasses of Permission in javax.security.auth.kerberos
  Modifier and Type
  Class
  Description
  `final class`
  `DelegationPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
  `final class`
  `ServicePermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
  Methods in javax.security.auth.kerberos with parameters of type Permission
  Modifier and Type
  Method
  Description
  `boolean`
  DelegationPermission.`implies(Permission p)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Checks if this Kerberos delegation permission object "implies" the specified permission.
  `boolean`
  ServicePermission.`implies(Permission p)`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Checks if this Kerberos service permission object "implies" the specified permission.

- ## Uses of Permission in javax.smartcardio

  Subclasses of Permission in javax.smartcardio
  Modifier and Type
  Class
  Description
  `class`
  `CardPermission`
  A permission for Smart Card operations.
  Methods in javax.smartcardio with parameters of type Permission
  Modifier and Type
  Method
  Description
  `boolean`
  CardPermission.`implies(Permission permission)`
  Checks if this CardPermission object implies the specified permission.

- ## Uses of Permission in javax.sound.sampled

  Subclasses of Permission in javax.sound.sampled
  Modifier and Type
  Class
  Description
  `class`
  `AudioPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  There is no replacement for this class.

- ## Uses of Permission in jdk.jfr

  Subclasses of Permission in jdk.jfr
  Modifier and Type
  Class
  Description
  `final class`
  `FlightRecorderPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.

- ## Uses of Permission in jdk.net

  Subclasses of Permission in jdk.net
  Modifier and Type
  Class
  Description
  `final class`
  `NetworkPermission`
  Deprecated, for removal: This API element is subject to removal in a future version.
  This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.