Microsoft SDK for Java

PermissionDataSet Class Methods

The PermissionDataSet Class contains the following methods:

add adds a permission to the set.
adjust adjusts each permission in the set with the given parameters.
adjustForCodebase adjusts a PermissionDataSet object to include additional access based on a codebase URL.
adjustWithReflectionLoader adjusts a PermissionDataSet with a class loader that indicates whether reflection access to a given class is allowed.
adjustWithThreadGroup adjusts a PermissionDataSet object to include additional thread access, based on a master thread group.
combine combines the data in the permission set with another permission set, and returns it as a third permission set.
compare compares the permissions in the PermissionDataSet object against the permissions in another set.
compareSet compares the PermissionDataSet object to another set.
copy copies the permission set.
decode decodes the contents of the specified data stream into a set of permission objects.
elements returns an enumeration of the permission types stored within this PermissionDataSet object.
encode encodes the contents of the set of permissions and sends encoded data to the specified stream.
find looks for a specific type of permission in the set.
isFullyTrusted determines whether the state of the permission set is fully trusted.
mapFormat given an encoding type, returns a tag which can then be used to perform encode and decode operations.
remove removes a permission from the set.
setFullyTrusted sets the fully trusted state of the permission set.
size retrieves the number of permissions objects contained in the set.
supportedFormats returns the encoding formats that the PermissionDataSet supports.
toPermissionSet turns the PermissionDataSet into a PermissionSet.
toString converts the contents of the PermissionDataSet object to its textual form.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.