| Package | Description | 
|---|---|
| java.io | Provides for system input and output through data streams,
serialization and the file system. | 
| java.net | Provides the classes for implementing networking applications. | 
| java.security | Provides the classes and interfaces for the security framework. | 
| 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). | 
| javax.management | Provides the core classes for the Java Management Extensions. | 
| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| PermissionCollection | FilePermission. newPermissionCollection()Returns a new PermissionCollection object for storing FilePermission
 objects. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected PermissionCollection | URLClassLoader. getPermissions(CodeSource codesource)Returns the permissions for the given codesource object. | 
| PermissionCollection | SocketPermission. newPermissionCollection()Returns a new PermissionCollection object for storing SocketPermission
 objects. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | PermissionsThis class represents a heterogeneous collection of Permissions. | 
| Modifier and Type | Field and Description | 
|---|---|
| static PermissionCollection | Policy. UNSUPPORTED_EMPTY_COLLECTIONA read-only empty PermissionCollection instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected PermissionCollection | PolicySpi. engineGetPermissions(CodeSource codesource)Return a PermissionCollection object containing the set of
 permissions granted to the specified CodeSource. | 
| protected PermissionCollection | PolicySpi. engineGetPermissions(ProtectionDomain domain)Return a PermissionCollection object containing the set of
 permissions granted to the specified ProtectionDomain. | 
| PermissionCollection | ProtectionDomain. getPermissions()Returns the static permissions granted to this domain. | 
| PermissionCollection | Policy. getPermissions(CodeSource codesource)Return a PermissionCollection object containing the set of
 permissions granted to the specified CodeSource. | 
| protected PermissionCollection | SecureClassLoader. getPermissions(CodeSource codesource)Returns the permissions for the given CodeSource object. | 
| PermissionCollection | Policy. getPermissions(ProtectionDomain domain)Return a PermissionCollection object containing the set of
 permissions granted to the specified ProtectionDomain. | 
| PermissionCollection | UnresolvedPermission. newPermissionCollection()Returns a new PermissionCollection object for storing
 UnresolvedPermission  objects. | 
| PermissionCollection | AllPermission. newPermissionCollection()Returns a new PermissionCollection object for storing AllPermission
 objects. | 
| PermissionCollection | BasicPermission. newPermissionCollection()Returns a new PermissionCollection object for storing BasicPermission
 objects. | 
| PermissionCollection | Permission. newPermissionCollection()Returns an empty PermissionCollection for a given Permission object, or null if
 one is not defined. | 
| Constructor and Description | 
|---|
| ProtectionDomain(CodeSource codesource,
                PermissionCollection permissions)Creates a new ProtectionDomain with the given CodeSource and
 Permissions. | 
| ProtectionDomain(CodeSource codesource,
                PermissionCollection permissions,
                ClassLoader classloader,
                Principal[] principals)Creates a new ProtectionDomain qualified by the given CodeSource,
 Permissions, ClassLoader and array of Principals. | 
| Modifier and Type | Method and Description | 
|---|---|
| PermissionCollection | PropertyPermission. newPermissionCollection()Returns a new PermissionCollection object for storing
 PropertyPermission objects. | 
| Modifier and Type | Method and Description | 
|---|---|
| PermissionCollection | MBeanServerPermission. newPermissionCollection() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract PermissionCollection | Policy. getPermissions(Subject subject,
              CodeSource cs)Deprecated.  Retrieve the Permissions granted to the Principals associated with
 the specified  CodeSource. | 
| PermissionCollection | PrivateCredentialPermission. newPermissionCollection()Return a homogeneous collection of PrivateCredentialPermissions
 in a  PermissionCollection. | 
| Modifier and Type | Method and Description | 
|---|---|
| PermissionCollection | ServicePermission. newPermissionCollection()Returns a PermissionCollection object for storing
 ServicePermission objects. | 
| PermissionCollection | DelegationPermission. newPermissionCollection()Returns a PermissionCollection object for storing
 DelegationPermission objects. | 
 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.