Deprecated
for removal since 17.
This class was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this class.
Policy class. Installing a system-wide Policy
object is no longer supported.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected PermissionCollection | Returns: a set of permissions granted to the specified CodeSourcethe CodeSource to which the returned
PermissionCollection has been granted codesource)Return a PermissionCollection object containing the set of permissions granted to the specified CodeSource. |
| protected PermissionCollection | Returns: a set of permissions granted to the specified ProtectionDomainthe ProtectionDomain to which the returned
PermissionCollection has been granted domain)Return a PermissionCollection object containing the set of permissions granted to the specified ProtectionDomain. |
| protected abstract boolean | Returns: booleantrue if the permission is granted to the domainthe ProtectionDomain to check domain, Permission check whether this permission is granted to the
specified domain permission)Check whether the policy has granted a Permission to a ProtectionDomain. |
| protected void |
| PolicySpi | back to summary |
|---|---|
| public PolicySpi() Constructor. | |
| engineGetPermissions | back to summary |
|---|---|
| protected PermissionCollection engineGetPermissions(CodeSource codesource) Return a PermissionCollection object containing the set of permissions granted to the specified CodeSource. The default implementation of this method returns Policy.UNSUPPORTED_EMPTY_COLLECTION object.
| |
| engineGetPermissions | back to summary |
|---|---|
| protected PermissionCollection engineGetPermissions(ProtectionDomain domain) Return a PermissionCollection object containing the set of permissions granted to the specified ProtectionDomain. The default implementation of this method returns Policy.UNSUPPORTED_EMPTY_COLLECTION object.
| |
| engineImplies | back to summary |
|---|---|
| protected abstract boolean engineImplies(ProtectionDomain domain, Permission permission) Check whether the policy has granted a Permission to a ProtectionDomain.
| |
| engineRefresh | back to summary |
|---|---|
| protected void engineRefresh() Refreshes/reloads the policy configuration. The default implementation of this method does nothing. | |