org.openid4java.server
Class InMemoryServerAssociationStore

java.lang.Object
  extended by org.openid4java.server.InMemoryServerAssociationStore
All Implemented Interfaces:
ServerAssociationStore

public class InMemoryServerAssociationStore
extends java.lang.Object
implements ServerAssociationStore

Author:
Marius Scurtescu, Johnny Bufu

Field Summary
private  int _counter
           
private  java.util.Map _handleMap
           
private static org.apache.commons.logging.Log _log
           
private  java.lang.String _timestamp
           
private static boolean DEBUG
           
 
Constructor Summary
InMemoryServerAssociationStore()
           
 
Method Summary
 Association generate(java.lang.String type, int expiryIn)
           
 Association load(java.lang.String handle)
           
 void remove(java.lang.String handle)
           
private  void removeExpired()
           
protected  int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_log

private static org.apache.commons.logging.Log _log

DEBUG

private static final boolean DEBUG

_timestamp

private java.lang.String _timestamp

_counter

private int _counter

_handleMap

private java.util.Map _handleMap
Constructor Detail

InMemoryServerAssociationStore

public InMemoryServerAssociationStore()
Method Detail

generate

public Association generate(java.lang.String type,
                            int expiryIn)
                     throws AssociationException
Specified by:
generate in interface ServerAssociationStore
Throws:
AssociationException

load

public Association load(java.lang.String handle)
Specified by:
load in interface ServerAssociationStore

remove

public void remove(java.lang.String handle)
Specified by:
remove in interface ServerAssociationStore

removeExpired

private void removeExpired()

size

protected int size()


Copyright 2006-2008 Sxip Identity Corporation