Package com.sun.identity.saml.plugins
Interface PartnerAccountMapper
-
- All Known Implementing Classes:
DefaultPartnerAccountMapper,NameIDPartnerAccountMapper
public interface PartnerAccountMapperThe classPartnerAccountMapperis an interface that is implemented to map partner account to user account in OpenAM.Different partner would need to have a different implementation of the interface. The mappings between the partner source ID and the implementation class are configured at the
Partner URLsfield in SAML service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MapgetUser(SubjectQuery subjectQuery, String sourceID)Returns user account in OpenAM to which the subject in the query is mapped.MapgetUser(List assertions, String sourceID, String targetURL)Returns user account in OpenAM to which the subject in the assertion is mapped.
-
-
-
Field Detail
-
NAME
static final String NAME
Key to hold user DN in returned map- See Also:
- Constant Field Values
-
ORG
static final String ORG
Key to hold organization DN in returned map- See Also:
- Constant Field Values
-
ATTRIBUTE
static final String ATTRIBUTE
Key to hold attributes to be set as session properties.- See Also:
- Constant Field Values
-
-
Method Detail
-
getUser
Map getUser(List assertions, String sourceID, String targetURL)
Returns user account in OpenAM to which the subject in the assertion is mapped. This method will be called in POST profile,ARTIFACTprofile,AttributeQueryandAuthorizationDecisionQuery.- Parameters:
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 becom.sun.identity.saml.assertion.AssertionsourceID- source ID for the site from which the subject originated.targetURL- value forTARGETquery parameter when the user accessing the SAML aware servlet or post profile servlet.- Returns:
- Map which contains
NAME,ORGandATTRIBUTEkeys, value of theNAMEkey is the user DN, value of theORGis the user organization DN, value of theATTRIBUTEis a Map containing key/value pairs which will be set as properties on the OpenAM SSO token, the key is the SSO property name, the value is a String value of the property. Returns empty map if the mapped user could not be obtained from the subject.
-
getUser
Map getUser(SubjectQuery subjectQuery, String sourceID)
Returns user account in OpenAM to which the subject in the query is mapped. This method will be called inAttributeQuery.- Parameters:
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.- Returns:
- Map which contains
NAMEandORGkeys, value of theNAMEkey is the user DN, value of theORGis the user organization DN. Returns empty map if the mapped user could not be obtained from the subject.
-
-