public class DefaultPartnerAccountMapper extends Object implements PartnerAccountMapper
DefaultPartnerAccountMapper
provide a default
implementation of the PartnerAccountMapper
interface.
The implementation assumes two sites have exactly the same DIT structure, and it maps remote user to the anonymous user by default if the DIT structure could not be determined.
ATTRIBUTE, NAME, ORG
Constructor and Description |
---|
DefaultPartnerAccountMapper()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
Map |
getUser(List assertions,
String sourceID,
String targetURL)
Returns user account in OpenAM to which the
subject in the assertion is mapped.
|
Map |
getUser(SubjectQuery subjectQuery,
String sourceID)
Returns user account in OpenAM to which the
subject in the query is mapped.
|
protected void |
getUser(Subject subject,
String sourceID,
Map<String,String> map) |
public DefaultPartnerAccountMapper()
public Map getUser(List assertions, String sourceID, String targetURL)
getUser
in interface PartnerAccountMapper
assertions
- a list of authentication assertions returned from
partner side, this will contains user's identity in
the partner side. The object in the list will be
com.sun.identity.saml.assertion.Assertion
sourceID
- source ID for the site from which the subject
originated.targetURL
- value for TARGET query parameter when the user
accessing the SAML aware servlet or post profile
servletpublic Map getUser(SubjectQuery subjectQuery, String sourceID)
getUser
in interface PartnerAccountMapper
subjectQuery
- subject query returned from partner side,
this will contains user's identity in the partner side.sourceID
- source ID for the site from which the subject
originated.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.