|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.Policy
org.jboss.security.jacc.DelegatingPolicy
public class DelegatingPolicy
A JAAC Policy provider implementation that delegates any non-JACC permissions to the java.security.Policy either passed in to the ctor, or the pre existing Policy.getPolicy value.
Constructor Summary | |
---|---|
DelegatingPolicy()
|
|
DelegatingPolicy(Policy delegate)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.security.Policy |
---|
getPolicy, setPolicy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingPolicy()
public DelegatingPolicy(Policy delegate)
Method Detail |
---|
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)
implies
in class Policy
public PermissionCollection getPermissions(CodeSource cs)
getPermissions
in class Policy
cs
- - the CodeSource
public void refresh()
refresh
in class Policy
public Policy getPolicyProxy()
public String listContextPolicies()
public void commit(String contextID) throws javax.security.jacc.PolicyContextException
contextID
-
javax.security.jacc.PolicyContextException
public void delete(String contextID) throws javax.security.jacc.PolicyContextException
javax.security.jacc.PolicyContextException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |