| java.lang.Object java.security.Policy org.objectweb.jonas_lib.security.jacc.JPolicyWrapper
JPolicyWrapper | public class JPolicyWrapper extends Policy (Code) | | Wrapper to the JPolicy class. This is used to instantiate
the real Policy object by using Thread classloader.
author: Florent Benoit |
Method Summary | |
public PermissionCollection | getPermissions(CodeSource codesource) Evaluates the global policy and returns a PermissionCollection object
specifying the set of permissions allowed given the characteristics
of the protection domain. | public PermissionCollection | getPermissions(ProtectionDomain domain) Evaluates the global policy and returns a PermissionCollection object
specifying the set of permissions allowed given the characteristics
of the protection domain. | public boolean | implies(ProtectionDomain domain, Permission permission) Evaluates the global policy for the permissions granted
to the ProtectionDomain and tests whether the permission is granted.
Parameters: domain - the ProtectionDomain to test. Parameters: permission - the Permission object to be tested for implication. | public void | refresh() Refreshes/reloads the policy configuration. |
JPolicyWrapper | public JPolicyWrapper()(Code) | | Default constructor
|
getPermissions | public PermissionCollection getPermissions(CodeSource codesource)(Code) | | Evaluates the global policy and returns a PermissionCollection object
specifying the set of permissions allowed given the characteristics
of the protection domain.
Parameters: codesource - the given codesource on which retrieve permissions permissions |
getPermissions | public PermissionCollection getPermissions(ProtectionDomain domain)(Code) | | Evaluates the global policy and returns a PermissionCollection object
specifying the set of permissions allowed given the characteristics
of the protection domain.
Parameters: domain - the given domain on which retrieve permissions permissions |
implies | public boolean implies(ProtectionDomain domain, Permission permission)(Code) | | Evaluates the global policy for the permissions granted
to the ProtectionDomain and tests whether the permission is granted.
Parameters: domain - the ProtectionDomain to test. Parameters: permission - the Permission object to be tested for implication. true if "permission" is a proper subset of a permissiongranted to this ProtectionDomain. |
refresh | public void refresh()(Code) | | Refreshes/reloads the policy configuration.
|
|
|