API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.security. ProtectionDomain View Source
Author(s)
Li Gong
Roland Schemers
Gary Ellison
Since
Version
1.47, 11/17/05
Serial
Hierarchy
 Object
      ProtectionDomain
Implements
Subclasses
Description
public class ProtectionDomain
  This ProtectionDomain class encapsulates the characteristics of a domain, which encloses a set of classes whose instances are granted a set of permissions when being executed on behalf of a given set of Principals.
See also:   
Constructors
public ProtectionDomain (CodeSource codesource, PermissionCollection permissions)
  Creates a new ProtectionDomain with the given CodeSource and Permissions.
public ProtectionDomain (CodeSource codesource, PermissionCollection permissions, ClassLoader classloader, Principal principals)
  Creates a new ProtectionDomain qualified by the given CodeSource, Permissions, ClassLoader and array of Principals.
Methods
Hide/Show inherited methods
publicfinal ClassLoader getClassLoader ()
  Returns the ClassLoader of this domain.
publicfinal CodeSource getCodeSource ()
  Returns the CodeSource of this domain.
publicfinal PermissionCollection getPermissions ()
  Returns the static permissions granted to this domain.
publicfinal Principal getPrincipals ()
  Returns an array of principals for this domain.
public boolean implies (Permission permission)
  Check and see if this ProtectionDomain implies the permissions expressed in the Permission object.
public String toString ()
Convert a ProtectionDomain to a String.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar