no.feide.moria.store
Class CachedUserData

java.lang.Object
  extended by no.feide.moria.store.CachedUserData
All Implemented Interfaces:
java.io.Serializable, MoriaStoreData

public final class CachedUserData
extends java.lang.Object
implements MoriaStoreData

This class is a container for userdata that persists across logins (for SSO Light and Proxy authentication).

Version:
$Revision: 1.10 $
Author:
Bjørn Ola Smievoll <b.o@smievoll.no>
See Also:
Serialized Form

Field Summary
private  java.util.HashMap attributes
          The internal hashmap used to store the attributes.
 
Constructor Summary
CachedUserData(java.util.HashMap attributes)
          Constructs a new instance encapsulating the userdata given as argument.
 
Method Summary
 void addAttribute(java.lang.String name, java.lang.Object data)
          Adds an attribute.
 java.util.HashMap getAttributes()
          Gets a map containing the attributes.
 void removeAttribute(java.lang.String name)
          Remove an attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributes

private final java.util.HashMap attributes
The internal hashmap used to store the attributes.

Constructor Detail

CachedUserData

public CachedUserData(java.util.HashMap attributes)
Constructs a new instance encapsulating the userdata given as argument.

Parameters:
attributes - A hashmap containing the user attributes.
Method Detail

addAttribute

public void addAttribute(java.lang.String name,
                         java.lang.Object data)
Adds an attribute. Needed to add ticket granting tickets to cache.

Parameters:
name - Attribute name.
data - Attribute data.

removeAttribute

public void removeAttribute(java.lang.String name)
Remove an attribute. Needed to purge non-SSO-enabled attributes.

Parameters:
name - Attribute name.

getAttributes

public java.util.HashMap getAttributes()
Gets a map containing the attributes.

Returns:
A clone of the internal attribute map.


Copyright © 2001-2006 UNINETT FAS. All Rights Reserved.