org.aselect.server.attributes.requestors.opaque
Class OpaqueAttributeRequestor

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

public class OpaqueAttributeRequestor
extends GenericAttributeRequestor

Generate an "opaque handle" attribute from the user id

Description:
Generates the SHA1 of the user id and returns this as an attribute. The name of the attribute must be configured in the configuration section of this attribute requestor.

Concurrency issues:
None.

Author:
Alfa & Ariss

Field Summary
 
Fields inherited from class org.aselect.server.attributes.requestors.GenericAttributeRequestor
_configManager, _samAgent, _systemLogger
 
Constructor Summary
OpaqueAttributeRequestor()
           
 
Method Summary
 void destroy()
          Destroys the OpaqueAttributeRequestor.
 java.util.Hashtable getAttributes(java.util.Hashtable htTGTContext, java.util.Vector vAttributes)
          Retrieve attributes from opaquehandler.
 void init(java.lang.Object oConfig)
          Initialize the OpaqueAttributeRequestor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpaqueAttributeRequestor

public OpaqueAttributeRequestor()
Method Detail

getAttributes

public java.util.Hashtable getAttributes(java.util.Hashtable htTGTContext,
                                         java.util.Vector vAttributes)
                                  throws ASelectAttributesException
Retrieve attributes from opaquehandler.

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)

init

public void init(java.lang.Object oConfig)
          throws ASelectException
Initialize the OpaqueAttributeRequestor.

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

destroy

public void destroy()
Destroys the OpaqueAttributeRequestor.

See Also:
IAttributeRequestor.destroy()


Copyright © 2008 SURFnet BV. All Rights Reserved.