public class ClientsPolicy extends Policy
The policy checks if the current context contains one of IdentityPrincipal
(all subjects authenticated through JAAS service have them). In this case
the policy leave any subclass of ClientPermission
, MBeanPermission
or AuthPermission
.
Everything else will be filtered out.
If the security context does not includes IdentityPrincipal
, the policy delegate
request to the original one.
Policy.Parameters
UNSUPPORTED_EMPTY_COLLECTION
Modifier and Type | Method and Description |
---|---|
PermissionCollection |
getPermissions(CodeSource codesource) |
PermissionCollection |
getPermissions(ProtectionDomain domain) |
static void |
init()
Initialize the policy in the system
|
void |
refresh() |
getInstance, getInstance, getInstance, getParameters, getPolicy, getProvider, getType, implies, setPolicy
public PermissionCollection getPermissions(CodeSource codesource)
getPermissions
in class Policy
public PermissionCollection getPermissions(ProtectionDomain domain)
getPermissions
in class Policy
public static void init()