org.aselect.server.attributes
Class AttributeGatherer

java.lang.Object
  extended by org.aselect.server.attributes.AttributeGatherer

public class AttributeGatherer
extends java.lang.Object

Gather and filter user attributes.

Description:
This class gathers user attributes after succesful authentication using one or more configured AttributeRequestors. It also filters out attributes based on the Attribute Release Policy.

Concurrency issues:
None

Author:
Alfa & Ariss

Method Summary
 void destroy()
          Destroys the objects in this class that need to be destroyed carefully.
 java.util.Hashtable gatherAttributes(java.util.Hashtable htTGTContext)
          Gather all attributes for the given user.
static AttributeGatherer getHandle()
          Is used to acquire an instance of the AttributeGatherer.
 void init()
          Initialize the Attribute Gatherer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHandle

public static AttributeGatherer getHandle()
Is used to acquire an instance of the AttributeGatherer.

Description:
Creates a new static AttributeGatherer instance if it's not instantiated yet. The static instance is returned.

Concurrency issues:
-

Preconditions:
-

Postconditions:
One AttributeGatherer instance exists.

Returns:
Sattic handle to the AttributeGatherer.

init

public void init()
          throws ASelectException
Initialize the Attribute Gatherer.

Description:
Initializes the attribute gatherer by reading and validating the attributes configuration.

Concurrency issues:
none

Throws:
ASelectException - If initialization fails.

gatherAttributes

public java.util.Hashtable gatherAttributes(java.util.Hashtable htTGTContext)
                                     throws ASelectException
Gather all attributes for the given user.

Description:
Performs the following steps:
Concurrency issues:
-

Preconditions:
-

Postconditions:
-

Parameters:
htTGTContext - The TGT context.
Returns:
A Hashtable containing all gathered attributes.
Throws:
ASelectException - If attribute gathering fails.

destroy

public void destroy()
Destroys the objects in this class that need to be destroyed carefully.

Description:
Calls the destroy of the attribute requestors in the _htRequestors Hashtable.

Concurrency issues:
-

Preconditions:
The _htRequestors contains attribute requestors that aren't destroyed

Postconditions:
All attribute requestors in _htRequestors are destroyed.



Copyright © 2008 SURFnet BV. All Rights Reserved.