java.lang.Object | |
↳ | java.security.PermissionCollection |
Known Direct Subclasses |
PermissionCollection
is the common base class for all collections
that provide a convenient method for determining whether or not a given
permission is implied by any of the permissions present in this collection.
A PermissionCollection
is typically created by using the
newPermissionCollection()
factory method. If the mentioned
method returns null
, then a PermissionCollection
of any type
can be used. If a collection is returned, it must be used for holding several
permissions of the particular type.
Subclasses must be implemented thread save.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds the specified
Permission to this collection. | |||||||||||
Returns an enumeration over all
Permission s encapsulated by this
PermissionCollection . | |||||||||||
Indicates whether the specified permission is implied by this
PermissionCollection . | |||||||||||
Indicates whether new permissions can be added to this
PermissionCollection . | |||||||||||
Marks this
PermissionCollection as read only, so that no new
permissions can be added to it. | |||||||||||
Returns a string containing a concise, human-readable description of this
PermissionCollection . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Adds the specified Permission
to this collection.
permission | the Permission to add. |
---|
IllegalStateException | if the collection is read only. |
---|
Returns an enumeration over all Permission
s encapsulated by this
PermissionCollection
.
Permission
s.
Indicates whether the specified permission is implied by this PermissionCollection
.
permission | the permission to check. |
---|
true
if the given permission is implied by the
permissions in this collection, false
otherwise.
Indicates whether new permissions can be added to this PermissionCollection
.
true
if the receiver is read only, false
if new
elements can still be added to this PermissionCollection
.
Marks this PermissionCollection
as read only, so that no new
permissions can be added to it.
Returns a string containing a concise, human-readable description of this
PermissionCollection
.
PermissionCollection
.