org.sourceid.saml20.service.impl.localmemory
Class PseudonymServiceMapImpl

java.lang.Object
  extended by org.sourceid.saml20.service.impl.localmemory.PseudonymServiceMapImpl
All Implemented Interfaces:
PseudonymService

public class PseudonymServiceMapImpl
extends java.lang.Object
implements PseudonymService

A HashMap and random number backed implementation of the PseudonymService. Not really for production use.

Author:
Brian Campbell

Constructor Summary
PseudonymServiceMapImpl()
           
 
Method Summary
 java.lang.String getPseudonym(java.lang.String localIdentification, java.lang.String spEntityId, boolean allowCreate)
          Looks up or generates of derives the pseudonym for the given subject for use in the context of the given SP.
 void terminatePseudonym(java.lang.String pseudonym, java.lang.String spEntityId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PseudonymServiceMapImpl

public PseudonymServiceMapImpl()
Method Detail

getPseudonym

public java.lang.String getPseudonym(java.lang.String localIdentification,
                                     java.lang.String spEntityId,
                                     boolean allowCreate)
                              throws PseudonymServiceException
Description copied from interface: PseudonymService
Looks up or generates of derives the pseudonym for the given subject for use in the context of the given SP.

Specified by:
getPseudonym in interface PseudonymService
Parameters:
localIdentification - a string representation of the local identity of the subject.
spEntityId - the entityId of the SP partner connection with whom this pseudonym will be used.
allowCreate - passed though from the protocol message. The value of this attribute is only advisory and can be ignored.
Returns:
an opaque user identifer (repeated calls with the same values for localIdentification and spEntityId should return the same value).
Throws:
PseudonymServiceException - for any unexpected runtime problem that the implementation cannot handle.

terminatePseudonym

public void terminatePseudonym(java.lang.String pseudonym,
                               java.lang.String spEntityId)


Copyright 2007 Ping Identity Corp. All rights reserved.