org.aselect.server.attributes.requestors.jndi
Class JNDIAttributeRequestor

java.lang.Object
  extended by org.aselect.server.attributes.requestors.GenericAttributeRequestor
      extended by org.aselect.server.attributes.requestors.jndi.JNDIAttributeRequestor
All Implemented Interfaces:
IAttributeRequestor

public class JNDIAttributeRequestor
extends GenericAttributeRequestor

The JNDI Attribute Requestor.

Description:
This class can be used as AttributeRequestor by the A-Select Server AttributeGatherer

Concurrency issues:
-

Author:
Alfa & Ariss

Field Summary
 
Fields inherited from class org.aselect.server.attributes.requestors.GenericAttributeRequestor
_configManager, _samAgent, _systemLogger
 
Constructor Summary
JNDIAttributeRequestor()
           
 
Method Summary
 void destroy()
          Unused method.
 java.util.Hashtable getAttributes(java.util.Hashtable htTGTContext, java.util.Vector vAttributes)
          Resolves the attribute values from the JNDI backend.
 void init(java.lang.Object oConfig)
          Initializes the JNDI Attribute Requestor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNDIAttributeRequestor

public JNDIAttributeRequestor()
Method Detail

init

public void init(java.lang.Object oConfig)
          throws ASelectException
Initializes the JNDI Attribute Requestor.
Reads the 'main' section of the supplied configuration
Reads the 'attributes' section of the supplied configuration
Checks if there is at least one resource configured in the resourcegroup

Parameters:
oConfig - The configuration section to use.
Throws:
ASelectException - If configuration fails.
See Also:
IAttributeRequestor.init(java.lang.Object)

getAttributes

public java.util.Hashtable getAttributes(java.util.Hashtable htTGTContext,
                                         java.util.Vector vAttributes)
                                  throws ASelectAttributesException
Resolves the attribute values from the JNDI backend.
A search will be done to search the user in the base dn.
The attributes that are supplied to the method will directly be requested.
If a '*' character is the first element of the supplied Vector , then all attributes will be returned.

Parameters:
htTGTContext - the TGT context.
vAttributes - The attributes to gather.
Returns:
The retrieved attributes.
Throws:
ASelectAttributesException - If gathering fails.
See Also:
IAttributeRequestor.getAttributes(java.util.Hashtable, java.util.Vector)

destroy

public void destroy()
Unused method.

See Also:
IAttributeRequestor.destroy()


Copyright © 2008 SURFnet BV. All Rights Reserved.