|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.lanl.RAD.Impl.PolicyHolderEnforcer
Maintains policies corresponding to policynames. It obtains the policies attached to an operation and the one attached to the specific resourceName Also contains logic to decide whether policies are satisfied by user attributes

| Field Summary | |
java.util.Hashtable |
Policies
Hashtable containing the Policies attached to a resource Name |
| Constructor Summary | |
PolicyHolderEnforcer(java.lang.String policyFile)
creates a new Hashtable to store policyname-policy pairs |
|
| Method Summary | |
boolean |
access_allowed(java.util.Vector rights,
java.lang.String resource_names,
java.lang.String operation,
java.lang.String policyName)
|
static void |
main(java.lang.String[] argv)
used to test PolicyHolderEnforcer |
void |
readPolicies(java.lang.String fileName)
Reads policyname-policy pairs from input file name and stores them in Hashtable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.util.Hashtable Policies
| Constructor Detail |
public PolicyHolderEnforcer(java.lang.String policyFile)
| Method Detail |
public void readPolicies(java.lang.String fileName)
fileName - file containing policyname-policy pairs in XML format
public boolean access_allowed(java.util.Vector rights,
java.lang.String resource_names,
java.lang.String operation,
java.lang.String policyName)
rights - Vector containing effective rights of the userresource_names - resource for which access decision is to be madeoperation - states what the resource is going to be used forpolicyName - determines which policy should be checked
public static void main(java.lang.String[] argv)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||