| java.lang.Object | |
| ↳ | java.security.ProtectionDomain |
This class represents a domain in which classes from the same source (URL) and signed by the same keys are stored. All the classes inside are given the same permissions.
Note: a class can only belong to one and only one protection domain.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a protection domain from the given code source and the
permissions that that should be granted to the classes which are
encapsulated in it.
| |||||||||||
Constructs a protection domain from the given code source and the
permissions that that should be granted to the classes which are
encapsulated in it.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the ClassLoader associated with the ProtectionDomain
| |||||||||||
Returns the code source of this domain.
| |||||||||||
Returns the permissions that should be granted to the classes which are
encapsulated in this domain.
| |||||||||||
Returns the Principals associated with this ProtectionDomain.
| |||||||||||
Determines whether the permission collection of this domain implies the
argument permission.
| |||||||||||
Returns a string containing a concise, human-readable description of the
receiver.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
Constructs a protection domain from the given code source and the permissions that that should be granted to the classes which are encapsulated in it.
Constructs a protection domain from the given code source and the permissions that that should be granted to the classes which are encapsulated in it. This constructor also allows the association of a ClassLoader and group of Principals.
| cs | the CodeSource associated with this domain |
|---|---|
| permissions | the Permissions associated with this domain |
| cl | the ClassLoader associated with this domain |
| principals | the Principals associated with this domain |
Returns the ClassLoader associated with the ProtectionDomain
Returns the code source of this domain.
Returns the permissions that should be granted to the classes which are encapsulated in this domain.
Returns the Principals associated with this ProtectionDomain. A change to the returned array will not impact the ProtectionDomain.
Determines whether the permission collection of this domain implies the argument permission.
| permission | java.security.Permission the permission to check. |
|---|
Returns a string containing a concise, human-readable description of the receiver.