Ja.NET Standard Edition 5.0

Documentation API Specification

Contents

PermissionCollection Class Reference

Inherits java::io::Serializable.

Inherited by FilePermissionCollection, SocketPermissionCollection, AllPermissionCollection, BasicPermissionCollection, Permissions, PermissionsHash, UnresolvedPermissionCollection, PropertyPermissionCollection, KrbDelegationPermissionCollection, and KrbServicePermissionCollection.

List of all members.


Detailed Description

Abstract superclass of classes which are collections of Permission objects.

Public Member Functions

abstract void add (Permission permission)
 Adds the argument to the collection.
abstract Enumeration< Permissionelements ()
 Answers an enumeration of the permissions in the receiver.
abstract boolean implies (Permission permission)
 Indicates whether the argument permission is implied by the permissions contained in the receiver.
boolean isReadOnly ()
 Indicates whether new permissions can be added to the receiver.
void setReadOnly ()
 Marks the receiver as read only, so that no new permissions can be added to it.
String toString ()
 Answers a string containing a concise, human-readable description of the receiver.

Private Attributes

boolean readOnly
 .intel.drl.spec_ref

Static Private Attributes

static final long serialVersionUID = -6727011328946861783L
 .intel.drl.spec_ref

Member Function Documentation

abstract void add ( Permission  permission  )  [pure virtual]

Adds the argument to the collection.

Parameters:
permission java.security.Permission the permission to add to the collection.
Exceptions:
IllegalStateException if the collection is read only.

Implemented in KrbDelegationPermissionCollection, KrbServicePermissionCollection, FilePermissionCollection, SocketPermissionCollection, PropertyPermissionCollection, AllPermissionCollection, BasicPermissionCollection, Permissions, PermissionsHash, and UnresolvedPermissionCollection.

abstract Enumeration<Permission> elements (  )  [pure virtual]

abstract boolean implies ( Permission  permission  )  [pure virtual]

Indicates whether the argument permission is implied by the permissions contained in the receiver.

Returns:
boolean true if the argument permission is implied by the permissions in the receiver, and false if it is not.
Parameters:
permission java.security.Permission the permission to check

Implemented in KrbDelegationPermissionCollection, KrbServicePermissionCollection, FilePermissionCollection, SocketPermissionCollection, PropertyPermissionCollection, AllPermissionCollection, BasicPermissionCollection, Permissions, PermissionsHash, and UnresolvedPermissionCollection.

boolean isReadOnly (  ) 

Indicates whether new permissions can be added to the receiver.

Returns:
boolean true if the receiver is read only false if new elements can still be added to the receiver.

void setReadOnly (  ) 

Marks the receiver as read only, so that no new permissions can be added to it.

String toString (  ) 

Answers a string containing a concise, human-readable description of the receiver.

Returns:
a printable representation for the receiver.


Member Data Documentation

final long serialVersionUID = -6727011328946861783L [static, private]

boolean readOnly [private]

.intel.drl.spec_ref