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

 

Constructor Summary
AttrListProvider(java.lang.String[] inNames, java.lang.String[] inRoles)
          Create list of Names and Roles
 
Method Summary
 org.omg.Security.SecAttribute[] getAttrList(int Role, int Name)
          Returns SecAttribute[] to the client based on the input parameters
 org.omg.Security.SecAttribute[] getAttrList(java.lang.String Name)
          Get SecAttributes with just the user Name
 org.omg.Security.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 org.omg.Security.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 org.omg.Security.SecAttribute[] getAttrList(java.lang.String Name)
Get SecAttributes with just the user Name

Parameters:
Name -

getAttrList

public org.omg.Security.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