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 APIjavax.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 thejava.netandjava.nio.channelssocket classes. -
-
Uses of Permission in com.sun.jdi
Subclasses of Permission in com.sun.jdi Modifier and Type Class Description classJDIPermissionTheJDIPermissionclass represents access rights to theVirtualMachineManager. -
Uses of Permission in com.sun.security.jgss
Subclasses of Permission in com.sun.security.jgss Modifier and Type Class Description classInquireSecContextPermissionThis 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
Subclasses of Permission in com.sun.tools.attach Modifier and Type Class Description classAttachPermissionWhen aSecurityManagerset, this is the permission which will be checked when code invokesVirtualMachine.attachto attach to a target virtual machine. -
Uses of Permission in java.awt
Subclasses of Permission in java.awt Modifier and Type Class Description classAWTPermissionThis class is for AWT permissions. -
Uses of Permission in java.io
Subclasses of Permission in java.io Modifier and Type Class Description classFilePermissionThis class represents access to a file or directory.classSerializablePermissionThis class is for Serializable permissions.Methods in java.io with parameters of type Permission Modifier and Type Method Description booleanFilePermission. implies(Permission p)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 classRuntimePermissionThis class is for runtime permissions.Methods in java.lang with parameters of type Permission Modifier and Type Method Description voidSecurityManager. checkPermission(Permission perm)Throws aSecurityExceptionif the requested access, specified by the given permission, is not permitted based on the security policy currently in effect.voidSecurityManager. checkPermission(Permission perm, Object context)Throws aSecurityExceptionif the specified security context is denied access to the resource specified by the given permission. -
Uses of Permission in java.lang.management
Subclasses of Permission in java.lang.management Modifier and Type Class Description classManagementPermissionThe 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
Subclasses of Permission in java.lang.reflect Modifier and Type Class Description classReflectPermissionThe Permission class for reflective operations. -
Uses of Permission in java.net
Subclasses of Permission in java.net Modifier and Type Class Description classNetPermissionThis class is for various network permissions.classSocketPermissionThis class represents access to a network via sockets.classURLPermissionRepresents 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.Methods in java.net that return Permission Modifier and Type Method Description PermissionHttpURLConnection. getPermission()Returns aSocketPermissionobject representing the permission necessary to connect to the destination host and port.PermissionURLConnection. getPermission()Returns a permission object representing the permission necessary to make the connection represented by this object.Methods in java.net with parameters of type Permission Modifier and Type Method Description booleanSocketPermission. implies(Permission p)Checks if this socket permission object "implies" the specified permission.booleanURLPermission. implies(Permission p)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 classLinkPermissionThePermissionclass for link creation operations. -
Uses of Permission in java.security
Subclasses of Permission in java.security Modifier and Type Class Description classAllPermissionThe AllPermission is a permission that implies all other permissions.classBasicPermissionThe 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.classSecurityPermissionThis class is for security permissions.classUnresolvedPermissionThe UnresolvedPermission class is used to hold Permissions that were "unresolved" when the Policy was initialized.Methods in java.security that return Permission Modifier and Type Method Description PermissionAccessControlException. getPermission()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 PermissionCollections 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 voidPermissionCollection. add(Permission permission)Adds a permission object to the current collection of permission objects.voidPermissions. add(Permission permission)Adds a permission object to the PermissionCollection for the class the permission belongs to.voidAccessControlContext. checkPermission(Permission perm)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 voidAccessController. checkPermission(Permission perm)Determines whether the access request indicated by the specified permission should be allowed or denied, based on the current AccessControlContext and security policy.static <T> TAccessController. doPrivileged(PrivilegedAction<T> action, AccessControlContext context, Permission... perms)Performs the specifiedPrivilegedActionwith privileges enabled and restricted by the specifiedAccessControlContextand with a privilege scope limited by specifiedPermissionarguments.static <T> TAccessController. doPrivileged(PrivilegedExceptionAction<T> action, AccessControlContext context, Permission... perms)Performs the specifiedPrivilegedExceptionActionwith privileges enabled and restricted by the specifiedAccessControlContextand with a privilege scope limited by specifiedPermissionarguments.static <T> TAccessController. doPrivilegedWithCombiner(PrivilegedAction<T> action, AccessControlContext context, Permission... perms)Performs the specifiedPrivilegedActionwith privileges enabled and restricted by the specifiedAccessControlContextand with a privilege scope limited by specifiedPermissionarguments.static <T> TAccessController. doPrivilegedWithCombiner(PrivilegedExceptionAction<T> action, AccessControlContext context, Permission... perms)Performs the specifiedPrivilegedExceptionActionwith privileges enabled and restricted by the specifiedAccessControlContextand with a privilege scope limited by specifiedPermissionarguments.protected abstract booleanPolicySpi. engineImplies(ProtectionDomain domain, Permission permission)Check whether the policy has granted a Permission to a ProtectionDomain.booleanAllPermission. implies(Permission p)Checks if the specified permission is "implied" by this object.booleanBasicPermission. implies(Permission p)Checks if the specified permission is "implied" by this object.abstract booleanPermission. implies(Permission permission)Checks if the specified permission's actions are "implied by" this object's actions.abstract booleanPermissionCollection. implies(Permission permission)Checks to see if the specified permission is implied by the collection of Permission objects held in this PermissionCollection.booleanPermissions. 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.booleanPolicy. implies(ProtectionDomain domain, Permission permission)Evaluates the global policy for the permissions granted to the ProtectionDomain and tests whether the permission is granted.booleanProtectionDomain. implies(Permission perm)Check and see if this ProtectionDomain implies the permissions expressed in the Permission object.booleanUnresolvedPermission. implies(Permission p)This method always returns false for unresolved permissions.Constructors in java.security with parameters of type Permission Constructor Description AccessControlException(String s, Permission p)Constructs anAccessControlExceptionwith 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 classSQLPermissionThe permission for which theSecurityManagerwill check when code that is running an application with aSecurityManagerenabled, calls theDriverManager.deregisterDrivermethod,DriverManager.setLogWritermethod,DriverManager.setLogStream(deprecated) method,SyncFactory.setJNDIContextmethod,SyncFactory.setLoggermethod,Connection.setNetworkTimeoutmethod, or theConnection.abortmethod. -
Uses of Permission in java.util
Subclasses of Permission in java.util Modifier and Type Class Description classPropertyPermissionThis class is for property permissions.Methods in java.util with parameters of type Permission Modifier and Type Method Description booleanPropertyPermission. implies(Permission p)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 classLoggingPermissionThe 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
Subclasses of Permission in javax.management Modifier and Type Class Description classMBeanPermissionPermission controlling access to MBeanServer operations.classMBeanServerPermissionA Permission to perform actions related to MBeanServers.classMBeanTrustPermissionThis permission represents "trust" in a signer or codebase.Methods in javax.management with parameters of type Permission Modifier and Type Method Description booleanMBeanPermission. implies(Permission p)Checks if this MBeanPermission object "implies" the specified permission.booleanMBeanServerPermission. implies(Permission p)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 classSubjectDelegationPermissionPermission required by an authentication identity to perform operations on behalf of an authorization identity. -
Uses of Permission in javax.net.ssl
Subclasses of Permission in javax.net.ssl Modifier and Type Class Description classSSLPermissionThis class is for various network permissions. -
Uses of Permission in javax.security.auth
Subclasses of Permission in javax.security.auth Modifier and Type Class Description classAuthPermissionThis class is for authentication permissions.classPrivateCredentialPermissionThis class is used to protect access to private Credentials belonging to a particularSubject.Methods in javax.security.auth with parameters of type Permission Modifier and Type Method Description booleanPrivateCredentialPermission. implies(Permission p)Checks if thisPrivateCredentialPermissionimplies the specifiedPermission. -
Uses of Permission in javax.security.auth.kerberos
Subclasses of Permission in javax.security.auth.kerberos Modifier and Type Class Description classDelegationPermissionThis class is used to restrict the usage of the Kerberos delegation model, ie: forwardable and proxiable tickets.classServicePermissionThis class is used to protect Kerberos services and the credentials necessary to access those services.Methods in javax.security.auth.kerberos with parameters of type Permission Modifier and Type Method Description booleanDelegationPermission. implies(Permission p)Checks if this Kerberos delegation permission object "implies" the specified permission.booleanServicePermission. implies(Permission p)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 classCardPermissionA permission for Smart Card operations.Methods in javax.smartcardio with parameters of type Permission Modifier and Type Method Description booleanCardPermission. 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 classAudioPermissionTheAudioPermissionclass represents access rights to the audio system resources. -
Uses of Permission in jdk.jfr
Subclasses of Permission in jdk.jfr Modifier and Type Class Description classFlightRecorderPermissionPermission for controlling access to Flight Recorder. -
Uses of Permission in jdk.net
Subclasses of Permission in jdk.net Modifier and Type Class Description classNetworkPermissionRepresents permission to access the extended networking capabilities defined in the jdk.net package.
-