|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.security.Policy
|
+--org.codehaus.spice.xmlpolicy.runtime.AbstractPolicy
Abstract Policy class that makes it easy to add permission sets to policy.
| Constructor Summary | |
AbstractPolicy()
|
|
| Method Summary | |
protected Permissions |
createPermissionSetFor(CodeSource codeSource)
Create a set of permissions for a particular codesource. |
protected void |
error(String message,
Throwable throwable)
Error occured in policy. |
PermissionCollection |
getPermissions(CodeSource codeSource)
Overide so we can have a per-application security policy with no side-effects to other applications. |
void |
refresh()
Refresh policy. |
| Methods inherited from class java.security.Policy |
getPermissions, getPolicy, implies, setPolicy |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractPolicy()
| Method Detail |
public PermissionCollection getPermissions(CodeSource codeSource)
getPermissions in class PolicycodeSource - the CodeSource to get permissions for
public void refresh()
refresh in class Policyprotected Permissions createPermissionSetFor(CodeSource codeSource)
codeSource - the code source
protected void error(String message,
Throwable throwable)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||