gov.lanl.RAD.Impl
Class RightsService

java.lang.Object
  |
  +--gov.lanl.RAD.Impl.RightsService

public class RightsService
extends java.lang.Object

Used to generate effective rights of user based on his roles Each role has an id and a set of rights for that role

Version:
$Id: RightsService.java,v 1.6 2002/05/01 22:54:47 dwforslund Exp $
Author:
Srikanth Kotha $Author: dwforslund $

Constructor Summary
RightsService(java.lang.String rightsFile)
          Creates a new HashTable and reads the role-right pairs into it from Rights.xml
 
Method Summary
 java.util.Vector getRights(org.omg.Security.SecAttribute[] attribute_list)
           
static void main(java.lang.String[] argv)
          used to test Rights Service
 void read(java.lang.String fileName)
          Opens the XML file and and calls traverseTX to traverse the structure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RightsService

public RightsService(java.lang.String rightsFile)
Creates a new HashTable and reads the role-right pairs into it from Rights.xml

Method Detail

read

public void read(java.lang.String fileName)
Opens the XML file and and calls traverseTX to traverse the structure


getRights

public java.util.Vector getRights(org.omg.Security.SecAttribute[] attribute_list)
Parameters:
attribute_list - contains the user's roles based on which Rights are generated
Returns:
a Vector which contains the effective rights corresponding to input user attributes

main

public static void main(java.lang.String[] argv)
used to test Rights Service



Copyright © 2000 University of California. All Rights Reserved.