This ProtectionDomain class encapulates the characteristics of
a domain, which encloses a set of classes whose instances
are granted the same set of permissions.
In addition to a set of permissions, a domain is comprised of a
CodeSource, which is a set of PublicKeys together with a codebase (in
the form of a URL). Thus, classes signed by the same keys and
from the same URL are placed in the same domain.
Classes that have the same permissions but are from different code
sources belong to different domains.
A class belongs to one and only one ProtectionDomain.
Creates a new ProtectionDomain with the given CodeSource and
Permissions. If the permissions object is not null, then
setReadOnly() will be called on the passed in
Permissions object.
Parameters:
codesource - the codesource associated with this domain
permissions - the permissions granted to this domain
Submit a bug or feature For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, California, 94303, U.S.A. All Rights Reserved.