gov.lanl.Utility
Class AttrListProvider

java.lang.Object
  |
  +--gov.lanl.Utility.AttrListProvider

public class AttrListProvider
extends java.lang.Object

Provides AttributeList (SecAttribute[]) based on the user's name and role

Author:
Srikanth Kotha

Constructor Summary
AttrListProvider(java.lang.String[] inNames, java.lang.String[] inRoles)
          Create list of Names and Roles
 
Method Summary
 SecAttribute[] getAttrList(int Role, int Name)
          Returns SecAttribute[] to the client based on the input parameters
 SecAttribute[] getAttrList(java.lang.String Name)
          Get SecAttributes with just the user Name
 SecAttribute[] getAttrList(java.lang.String Role, java.lang.String Name)
          Returns SecAttribute[] to the client based on the input parameters
 void setDomain(java.lang.String domain)
          set the domain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttrListProvider

public AttrListProvider(java.lang.String[] inNames,
                        java.lang.String[] inRoles)
Create list of Names and Roles

Method Detail

setDomain

public void setDomain(java.lang.String domain)
set the domain

Parameters:
domain -

getAttrList

public SecAttribute[] getAttrList(int Role,
                                  int Name)
Returns SecAttribute[] to the client based on the input parameters

Parameters:
Role - is the user's role
Name - is the user's name
Returns:
SecAttribute[] which contains the user attributes

getAttrList

public SecAttribute[] getAttrList(java.lang.String Name)
Get SecAttributes with just the user Name

Parameters:
Name -

getAttrList

public SecAttribute[] getAttrList(java.lang.String Role,
                                  java.lang.String Name)
Returns SecAttribute[] to the client based on the input parameters

Parameters:
Role - is the user's role (eg. PHY, NUR etc.)
Name - is the user's name
Returns:
SecAttribute[] which contains the user attributes


Copyright © 2000 Apache Software Foundation. All Rights Reserved.