org.sourceid.saml20.service.impl
Class PseudonymServiceSha1Impl
java.lang.Object
org.sourceid.saml20.service.impl.PseudonymServiceSha1Impl
- All Implemented Interfaces:
- com.pingidentity.configservice.Reloadable, PseudonymService
public class PseudonymServiceSha1Impl
- extends java.lang.Object
- implements PseudonymService, com.pingidentity.configservice.Reloadable
An implementation of the PseudonymService that uses a SHA1 hash to
derive the pseudonym.
This implementation is suitable for use with the PingFederate server
running in a clustered or stand-alone mode because no runtime state needs to
be replicated.
- Author:
- Brian Campbell
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 |
reload()
|
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 |
PseudonymServiceSha1Impl
public PseudonymServiceSha1Impl()
reload
public void reload()
- Specified by:
reload
in interface com.pingidentity.configservice.Reloadable
getPseudonym
public java.lang.String getPseudonym(java.lang.String localIdentification,
java.lang.String spEntityId,
boolean allowCreate)
- 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).
terminatePseudonym
public void terminatePseudonym(java.lang.String pseudonym,
java.lang.String spEntityId)
Copyright 2007 Ping Identity Corp. All rights reserved.