| Package | Description | 
|---|---|
| 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 
JavaTM programming language. | 
| java.util | Contains the collections framework, legacy collection classes, event model,
date and time facilities, internationalization, and miscellaneous utility
classes (a string tokenizer, a random-number generator, and a bit array). | 
| java.util.logging | 
Provides the classes and interfaces of 
the JavaTM 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.sound.sampled | Provides interfaces and classes for capture, processing, and playback of sampled audio data. | 
| javax.xml.bind | 
        Provides a runtime binding framework for client applications including
        unmarshalling, marshalling, and validation capabilities. | 
| javax.xml.ws | This package contains the core JAX-WS APIs. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AWTPermissionThis class is for AWT permissions. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | FilePermissionThis class represents access to a file or directory. | 
| class  | SerializablePermissionThis class is for Serializable permissions. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | FilePermission. implies(Permission p)Checks if this FilePermission object "implies" the specified permission. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | RuntimePermissionThis class is for runtime permissions. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | SecurityManager. checkPermission(Permission perm)Throws a  SecurityExceptionif 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)Throws a  SecurityExceptionif the
 specified security context is denied access to the resource
 specified by the given permission. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ManagementPermissionThe 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. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ReflectPermissionThe Permission class for reflective operations. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | NetPermissionThis class is for various network permissions. | 
| class  | SocketPermissionThis class represents access to a network via sockets. | 
| class  | URLPermissionRepresents 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 Type | Method and Description | 
|---|---|
| Permission | URLConnection. getPermission()Returns a permission object representing the permission
 necessary to make the connection represented by this
 object. | 
| Permission | HttpURLConnection. getPermission()Returns a  SocketPermissionobject representing the
 permission necessary to connect to the destination host and port. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | URLPermission. implies(Permission p)Checks if this URLPermission implies the given permission. | 
| boolean | SocketPermission. implies(Permission p)Checks if this socket permission object "implies" the
 specified permission. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | LinkPermissionThe  Permissionclass for link creation operations. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AllPermissionThe AllPermission is a permission that implies all other permissions. | 
| class  | BasicPermissionThe 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. | 
| class  | SecurityPermissionThis class is for security permissions. | 
| class  | UnresolvedPermissionThe UnresolvedPermission class is used to hold Permissions that
 were "unresolved" when the Policy was initialized. | 
| Modifier and Type | Method and Description | 
|---|---|
| Permission | AccessControlException. getPermission()Gets the Permission object associated with this exception, or
 null if there was no corresponding Permission object. | 
| Modifier and Type | Method and 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. | 
| Modifier and Type | Method and 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)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)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> T | AccessController. doPrivileged(PrivilegedAction<T> action,
            AccessControlContext context,
            Permission... perms)Performs the specified  PrivilegedActionwith privileges
 enabled and restricted by the specifiedAccessControlContextand with a privilege scope limited
 by specifiedPermissionarguments. | 
| static <T> T | AccessController. doPrivileged(PrivilegedExceptionAction<T> action,
            AccessControlContext context,
            Permission... perms)Performs the specified  PrivilegedExceptionActionwith
 privileges enabled and restricted by the specifiedAccessControlContextand with a privilege scope limited by
 specifiedPermissionarguments. | 
| static <T> T | AccessController. doPrivilegedWithCombiner(PrivilegedAction<T> action,
                        AccessControlContext context,
                        Permission... perms)Performs the specified  PrivilegedActionwith privileges
 enabled and restricted by the specifiedAccessControlContextand with a privilege scope limited
 by specifiedPermissionarguments. | 
| static <T> T | AccessController. doPrivilegedWithCombiner(PrivilegedExceptionAction<T> action,
                        AccessControlContext context,
                        Permission... perms)Performs the specified  PrivilegedExceptionActionwith
 privileges enabled and restricted by the specifiedAccessControlContextand with a privilege scope limited by
 specifiedPermissionarguments. | 
| protected abstract boolean | PolicySpi. engineImplies(ProtectionDomain domain,
             Permission permission)Check whether the policy has granted a Permission to a ProtectionDomain. | 
| boolean | UnresolvedPermission. implies(Permission p)This method always returns false for unresolved permissions. | 
| 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 | AllPermission. 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. | 
| boolean | BasicPermission. implies(Permission p)Checks if the specified permission is "implied" by
 this object. | 
| 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 | ProtectionDomain. implies(Permission permission)Check and see if this ProtectionDomain implies the permissions
 expressed in the Permission object. | 
| boolean | Policy. implies(ProtectionDomain domain,
       Permission permission)Evaluates the global policy for the permissions granted to
 the ProtectionDomain and tests whether the permission is
 granted. | 
| Constructor and Description | 
|---|
| AccessControlException(String s,
                      Permission p)Constructs an  AccessControlExceptionwith the
 specified, detailed message, and the requested permission that caused
 the exception. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | SQLPermissionThe permission for which the  SecurityManagerwill 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. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | PropertyPermissionThis class is for property permissions. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | PropertyPermission. implies(Permission p)Checks if this PropertyPermission object "implies" the specified
 permission. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | LoggingPermissionThe 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). | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | MBeanPermissionPermission controlling access to MBeanServer operations. | 
| class  | MBeanServerPermissionA Permission to perform actions related to MBeanServers. | 
| class  | MBeanTrustPermissionThis permission represents "trust" in a signer or codebase. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | MBeanServerPermission. implies(Permission p)Checks if this MBeanServerPermission object "implies" the specified
 permission. | 
| boolean | MBeanPermission. implies(Permission p)Checks if this MBeanPermission object "implies" the
 specified permission. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | SubjectDelegationPermissionPermission required by an authentication identity to perform
 operations on behalf of an authorization identity. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | SSLPermissionThis class is for various network permissions. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AuthPermissionThis class is for authentication permissions. | 
| class  | PrivateCredentialPermissionThis class is used to protect access to private Credentials
 belonging to a particular  Subject. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | PrivateCredentialPermission. implies(Permission p)Checks if this  PrivateCredentialPermissionimplies
 the specifiedPermission. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | DelegationPermissionThis class is used to restrict the usage of the Kerberos
 delegation model, ie: forwardable and proxiable tickets. | 
| class  | ServicePermissionThis class is used to protect Kerberos services and the
 credentials necessary to access those services. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | ServicePermission. implies(Permission p)Checks if this Kerberos service permission object "implies" the
 specified permission. | 
| boolean | DelegationPermission. implies(Permission p)Checks if this Kerberos delegation permission object "implies" the
 specified permission. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AudioPermissionThe  AudioPermissionclass represents access rights to the audio
 system resources. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | JAXBPermissionThis class is for JAXB permissions. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | WebServicePermissionThis class defines web service permissions. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2015, Oracle and/or its affiliates.  All rights reserved.