Uses of Class
java.security.Permission
Package
Description
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.
This package defines classes and interfaces for the JDK extensions
to the GSS-API.
Provides the API to attach to a Java virtual machine.
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides for system input and output through data streams,
serialization and the file system.
Provides classes that are fundamental to the design of the Java
programming language.
Provides the management interfaces for monitoring and management of the
Java virtual machine and other components in the Java runtime.
Provides classes and interfaces for obtaining reflective information about
classes and objects.
Provides the classes for implementing networking applications.
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
Provides the classes and interfaces for the security framework.
Provides the API for accessing and processing data stored in a
data source (usually a relational database) using the
Java programming language.
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.
Provides the classes and interfaces of
the Java 2 platform's core logging facilities.
Provides the core classes for the Java Management Extensions.
Interfaces for remote access to
JMX MBean servers.
Provides classes for the secure socket package.
This package provides a framework for authentication and
authorization.
This package contains utility classes related to the Kerberos network
authentication protocol.
Java™ Smart Card I/O API.
Provides interfaces and classes for capture, processing, and playback of
sampled audio data.
This package provides classes to create events and control Flight Recorder.
Platform specific socket options for the
java.net
and java.nio.channels
socket classes.-
Uses of Permission in com.sun.jdi
Modifier and TypeClassDescriptionfinal class
TheJDIPermission
class represents access rights to theVirtualMachineManager
. -
Uses of Permission in com.sun.security.jgss
Modifier and TypeClassDescriptionfinal class
This class is used to protect various attributes of an established GSS security context that can be accessed using theExtendedGSSContext.inquireSecContext(com.sun.security.jgss.InquireType)
method. -
Uses of Permission in com.sun.tools.attach
Modifier and TypeClassDescriptionfinal class
When aSecurityManager
set, this is the permission which will be checked when code invokesVirtualMachine.attach
to attach to a target virtual machine. -
Uses of Permission in java.awt
-
Uses of Permission in java.io
Modifier and TypeClassDescriptionfinal class
This class represents access to a file or directory.final class
This class is for Serializable permissions.Modifier and TypeMethodDescriptionboolean
FilePermission.implies
(Permission p) Checks if this FilePermission object "implies" the specified permission. -
Uses of Permission in java.lang
Modifier and TypeClassDescriptionfinal class
This class is for runtime permissions.Modifier and TypeMethodDescriptionvoid
SecurityManager.checkPermission
(Permission perm) Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityException
if the requested access, specified by the given permission, is not permitted based on the security policy currently in effect.void
SecurityManager.checkPermission
(Permission perm, Object context) Deprecated, for removal: This API element is subject to removal in a future version.Throws aSecurityException
if the specified security context is denied access to the resource specified by the given permission. -
Uses of Permission in java.lang.management
Modifier and TypeClassDescriptionfinal class
The permission which the SecurityManager will check when code that is running with a SecurityManager calls methods defined in the management interface for the Java platform. -
Uses of Permission in java.lang.reflect
Modifier and TypeClassDescriptionfinal class
The Permission class for reflective operations. -
Uses of Permission in java.net
Modifier and TypeClassDescriptionfinal class
This class is for various network permissions.final class
This class represents access to a network via sockets.final class
Represents permission to access a resource or set of resources defined by a given url, and for a given set of user-settable request methods and request headers.Modifier and TypeMethodDescriptionHttpURLConnection.getPermission()
Returns aSocketPermission
object representing the permission necessary to connect to the destination host and port.URLConnection.getPermission()
Returns a permission object representing the permission necessary to make the connection represented by this object.Modifier and TypeMethodDescriptionboolean
SocketPermission.implies
(Permission p) Checks if this socket permission object "implies" the specified permission.boolean
URLPermission.implies
(Permission p) Checks if this URLPermission implies the given permission. -
Uses of Permission in java.nio.file
Modifier and TypeClassDescriptionfinal class
ThePermission
class for link creation operations. -
Uses of Permission in java.security
Modifier and TypeClassDescriptionfinal class
TheAllPermission
is a permission that implies all other permissions.class
TheBasicPermission
class extends thePermission
class, and can be used as the base class for permissions that want to follow the same naming convention asBasicPermission
.final class
This class is for security permissions.final class
TheUnresolvedPermission
class is used to hold Permissions that were "unresolved" when the Policy was initialized.Modifier and TypeMethodDescriptionAccessControlException.getPermission()
Deprecated, for removal: This API element is subject to removal in a future version.Gets thePermission
object associated with this exception, ornull
if there was no correspondingPermission
object.Modifier and TypeMethodDescriptionabstract Enumeration
<Permission> PermissionCollection.elements()
Returns an enumeration of all the Permission objects in the collection.Permissions.elements()
Returns an enumeration of all thePermission
objects in all thePermissionCollection
objects in thisPermissions
object.PermissionCollection.elementsAsStream()
Returns a stream of all the Permission objects in the collection.Modifier and TypeMethodDescriptionabstract void
PermissionCollection.add
(Permission permission) Adds a permission object to the current collection of permission objects.void
Permissions.add
(Permission permission) Adds aPermission
object to thePermissionCollection
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.Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect, and the context in this object.static void
AccessController.checkPermission
(Permission perm) Deprecated, for removal: This API element is subject to removal in a future version.Determines whether the access request indicated by the specified permission should be allowed or denied, based on the currentAccessControlContext
and security policy.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 specifiedPrivilegedAction
with privileges enabled and restricted by the specifiedAccessControlContext
and with a privilege scope limited by specifiedPermission
arguments.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 specifiedPrivilegedExceptionAction
with privileges enabled and restricted by the specifiedAccessControlContext
and with a privilege scope limited by specifiedPermission
arguments.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 specifiedPrivilegedAction
with privileges enabled and restricted by the specifiedAccessControlContext
and with a privilege scope limited by specifiedPermission
arguments.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 specifiedPrivilegedExceptionAction
with privileges enabled and restricted by the specifiedAccessControlContext
and with a privilege scope limited by specifiedPermission
arguments.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 ofPermission
objects held in thisPermissionCollection
.boolean
Permissions.implies
(Permission permission) Checks to see if this object'sPermissionCollection
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 global policy for the permissions granted to the ProtectionDomain and tests whether the permission is granted.boolean
ProtectionDomain.implies
(Permission perm) Check and see if thisProtectionDomain
implies the permissions expressed in thePermission
object.boolean
UnresolvedPermission.implies
(Permission p) This method always returnsfalse
for unresolved permissions.ModifierConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Constructs anAccessControlException
with the specified, detailed message, and the requested permission that caused the exception. -
Uses of Permission in java.sql
Modifier and TypeClassDescriptionfinal class
The permission for which theSecurityManager
will check when code that is running an application with aSecurityManager
enabled, calls theDriverManager.deregisterDriver
method,DriverManager.setLogWriter
method,DriverManager.setLogStream
(deprecated) method,SyncFactory.setJNDIContext
method,SyncFactory.setLogger
method,Connection.setNetworkTimeout
method, or theConnection.abort
method. -
Uses of Permission in java.util
Modifier and TypeClassDescriptionfinal class
This class is for property permissions.Modifier and TypeMethodDescriptionboolean
PropertyPermission.implies
(Permission p) Checks if this PropertyPermission object "implies" the specified permission. -
Uses of Permission in java.util.logging
Modifier and TypeClassDescriptionfinal class
The permission which the SecurityManager will check when code that is running with a SecurityManager calls one of the logging control methods (such as Logger.setLevel). -
Uses of Permission in javax.management
Modifier and TypeClassDescriptionclass
Permission controlling access to MBeanServer operations.class
A Permission to perform actions related to MBeanServers.class
This permission represents "trust" in a signer or codebase.Modifier and TypeMethodDescriptionboolean
MBeanPermission.implies
(Permission p) Checks if this MBeanPermission object "implies" the specified permission.boolean
MBeanServerPermission.implies
(Permission p) Checks if this MBeanServerPermission object "implies" the specified permission. -
Uses of Permission in javax.management.remote
Modifier and TypeClassDescriptionfinal class
Permission required by an authentication identity to perform operations on behalf of an authorization identity. -
Uses of Permission in javax.net.ssl
Modifier and TypeClassDescriptionfinal class
This class is for various network permissions. -
Uses of Permission in javax.security.auth
Modifier and TypeClassDescriptionfinal class
This class is for authentication permissions.final class
This class is used to protect access to private Credentials belonging to a particularSubject
.Modifier and TypeMethodDescriptionboolean
PrivateCredentialPermission.implies
(Permission p) Checks if thisPrivateCredentialPermission
implies the specifiedPermission
. -
Uses of Permission in javax.security.auth.kerberos
Modifier and TypeClassDescriptionfinal class
This class is used to restrict the usage of the Kerberos delegation model, ie: forwardable and proxiable tickets.final class
This class is used to protect Kerberos services and the credentials necessary to access those services.Modifier and TypeMethodDescriptionboolean
DelegationPermission.implies
(Permission p) Checks if this Kerberos delegation permission object "implies" the specified permission.boolean
ServicePermission.implies
(Permission p) Checks if this Kerberos service permission object "implies" the specified permission. -
Uses of Permission in javax.smartcardio
Modifier and TypeMethodDescriptionboolean
CardPermission.implies
(Permission permission) Checks if this CardPermission object implies the specified permission. -
Uses of Permission in javax.sound.sampled
Modifier and TypeClassDescriptionclass
TheAudioPermission
class represents access rights to the audio system resources. -
Uses of Permission in jdk.jfr
Modifier and TypeClassDescriptionfinal class
Permission for controlling access to Flight Recorder. -
Uses of Permission in jdk.net
Modifier and TypeClassDescriptionfinal class
Represents permission to access the extended networking capabilities defined in the jdk.net package.