public class DelegatingPolicy extends Policy
Policy.Parameters
UNSUPPORTED_EMPTY_COLLECTION
Constructor and Description |
---|
DelegatingPolicy() |
DelegatingPolicy(Policy delegate) |
Modifier and Type | Method and Description |
---|---|
void |
commit(String contextID)
May need to make this synchronized to allow the move from the open to
active policy map atomic.
|
void |
delete(String contextID) |
Class<?>[] |
getExternalPermissionTypes() |
static DelegatingPolicy |
getInstance() |
PermissionCollection |
getPermissions(CodeSource cs)
Return the permission collection associated with the cs.
|
PermissionCollection |
getPermissions(ProtectionDomain domain) |
Policy |
getPolicyProxy() |
boolean |
implies(ProtectionDomain domain,
Permission permission) |
String |
listContextPolicies()
Access the current ContextPolicy instances
|
void |
refresh()
We dynamically manage the active policies on commit so refresh is a noop.
|
void |
setExternalPermissionTypes(Class<?>[] externalPermissionTypes) |
getInstance, getInstance, getInstance, getParameters, getPolicy, getProvider, getType, setPolicy
public DelegatingPolicy()
public DelegatingPolicy(Policy delegate)
public static DelegatingPolicy getInstance()
public Class<?>[] getExternalPermissionTypes()
public void setExternalPermissionTypes(Class<?>[] externalPermissionTypes)
public PermissionCollection getPermissions(ProtectionDomain domain)
getPermissions
in class Policy
public boolean implies(ProtectionDomain domain, Permission permission)
public PermissionCollection getPermissions(CodeSource cs)
getPermissions
in class Policy
cs
- - the CodeSourcepublic void refresh()
public String listContextPolicies()
public Policy getPolicyProxy()
public void commit(String contextID) throws PolicyContextException
contextID
- PolicyContextException
public void delete(String contextID) throws PolicyContextException
PolicyContextException
Copyright © 2019 JBoss by Red Hat. All rights reserved.