|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.Policy org.jboss.portal.security.impl.jacc.PortalJaccPolicy
RipOff of the AppServer's DelegatingPolicy.
This is necessary to avoid redeployment issues with the access control checks. The DelegatingPolicy of the Application Server should be able to handle this, but I was not able to get it to work properly across redeployments. Idealy, the policy and the security service are defined external to the portal sar, but that raised other issues with the instatiation of the DelegatingPolicy and the external permission classes
Nested Class Summary | |
static class |
PortalJaccPolicy.PolicyProxy
This proxy wrapper restricts the visible methods to only those from the Policy base class. |
Constructor Summary | |
PortalJaccPolicy()
|
|
PortalJaccPolicy(java.security.Policy delegate)
|
Method Summary | |
void |
commit(java.lang.String contextID)
May need to make this synchronized to allow the move from the open to active policy map atomic. |
void |
delete(java.lang.String contextID)
|
java.lang.Class[] |
getExternalPermissionTypes()
|
static java.security.Policy |
getInstance()
|
java.security.PermissionCollection |
getPermissions(java.security.CodeSource cs)
Return the permission collection associated with the cs. |
java.security.PermissionCollection |
getPermissions(java.security.ProtectionDomain domain)
|
java.security.Policy |
getPolicyProxy()
returning 'this' for now (instead of the proxy) since I need access to more functionality in the security provider's start(). |
boolean |
implies(java.security.ProtectionDomain domain,
java.security.Permission permission)
|
java.lang.String |
listContextPolicies()
Access the current ContextPolicy instances |
void |
refresh()
We dynamically manage the active policies on commit so refresh is a noop. |
void |
setExternalPermissionTypes(java.lang.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 PortalJaccPolicy()
public PortalJaccPolicy(java.security.Policy delegate)
Method Detail |
public static java.security.Policy getInstance()
public java.lang.Class[] getExternalPermissionTypes()
public void setExternalPermissionTypes(java.lang.Class[] externalPermissionTypes)
public java.security.PermissionCollection getPermissions(java.security.ProtectionDomain domain)
public boolean implies(java.security.ProtectionDomain domain, java.security.Permission permission)
public java.security.PermissionCollection getPermissions(java.security.CodeSource cs)
cs
- - the CodeSource
public void refresh()
public java.security.Policy getPolicyProxy()
public java.lang.String listContextPolicies()
public void commit(java.lang.String contextID) throws javax.security.jacc.PolicyContextException
contextID
-
javax.security.jacc.PolicyContextException
public void delete(java.lang.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 |