Packages
 In this topic

*Constructors

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.security   Previous This
Package
Next

 


Class PermissionSet

public final class PermissionSet
{
  // Constructors
  public PermissionSet(PermissionDataSet pds);

  // Methods
  public PermissionDataSet getPermissions ();
}

This class represents an immutable form of a PermissionDataSet object. After a PermissionDataSet object has been converted to a PermissionSet object, the contents of the permission set can no longer be modified.

The SecurityClassLoader.defineClass method, which attaches a set of permissions to a class, requires a PermissionSet as one of its parameters.

Constructors

PermissionSet

public PermissionSet(PermissionDataSet pds);

Creates a PermissionSet object from a PermissionDataSet object. The contents of the PermissionDataSet object are copied to the PermissionSet so that any future changes to the PermissionDataSet will not affect the PermissionSet.

ParameterDescription
pds The PermissionDataSet to copy.

Methods

getPermissions

public PermissionDataSet getPermissions ();

Copies the contents of the PermissionSet, and then returns it as a PermissionDataSet that can be examined and modified. Any changes to the resulting PermissionDataSet will not affect the original PermissionSet.

Return Value:

Returns a copy of the contents of the PermissionSet as a PermissionDataSet.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.