|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.Policy org.apache.jetspeed.security.impl.RdbmsPolicy
public class RdbmsPolicy
Policy implementation using a relational database as persistent datastore.
This code was partially inspired from articles from:
Field Summary | |
---|---|
private static org.apache.commons.logging.Log |
log
|
private org.apache.jetspeed.security.PermissionManager |
pms
InternalPermission Manager Service. |
Constructor Summary | |
---|---|
RdbmsPolicy(org.apache.jetspeed.security.PermissionManager pms)
Default constructor. |
Method Summary | |
---|---|
private PermissionCollection |
getOtherPoliciesPermissions(CodeSource codeSource)
Gets all the permissions that should be enforced through the other policies configured. |
PermissionCollection |
getPermissions(CodeSource codeSource)
The RdbmsPolicy does not protect code source per say, but will return the protected code source from the other configured policies. |
PermissionCollection |
getPermissions(ProtectionDomain domain)
|
boolean |
implies(ProtectionDomain protectionDomain,
Permission permission)
Check that the permission is implied for the protection domain. |
void |
refresh()
|
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 |
Field Detail |
---|
private static final org.apache.commons.logging.Log log
private org.apache.jetspeed.security.PermissionManager pms
InternalPermission Manager Service.
Constructor Detail |
---|
public RdbmsPolicy(org.apache.jetspeed.security.PermissionManager pms)
Default constructor.
Method Detail |
---|
public void refresh()
refresh
in class Policy
Policy.refresh()
public boolean implies(ProtectionDomain protectionDomain, Permission permission)
Check that the permission is implied for the protection domain. This will check for
permissions against the configured RDBMS and all SecurityPolicies
configured through
the AuthorizationProvider.
The default policy is by default part of the SecurityPolicies
and will only if
configured through assembly.
implies
in class Policy
Policy.implies(java.security.ProtectionDomain, java.security.Permission)
public PermissionCollection getPermissions(ProtectionDomain domain)
getPermissions
in class Policy
Policy.getPermissions(java.security.ProtectionDomain)
public PermissionCollection getPermissions(CodeSource codeSource)
The RdbmsPolicy does not protect code source per say, but will return the protected code source from the other configured policies.
getPermissions
in class Policy
Policy.getPermissions(java.security.CodeSource)
private PermissionCollection getOtherPoliciesPermissions(CodeSource codeSource)
Gets all the permissions that should be enforced through the other policies configured.
codeSource
- The CodeSource.
PermissionCollection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |