com.sun.identity.saml.plugins
Interface AccountMapper


public interface AccountMapper

The class AccountMapper is an interface that is implemented to map partner account to user account in Sun Java System Identity Server.

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 URLs field in SAML service.


Field Summary
static java.lang.String NAME
          Key to hold user DN in returned map
static java.lang.String ORG
          Key to hold organization DN in returned map
 
Method Summary
 java.util.Map getUser(Subject subject, java.lang.String sourceID)
          Return user account in Sun Java System Identity Server to which the subject is mapped.
 

Field Detail

NAME

public static final java.lang.String NAME
Key to hold user DN in returned map

ORG

public static final java.lang.String ORG
Key to hold organization DN in returned map
Method Detail

getUser

public java.util.Map getUser(Subject subject,
                             java.lang.String sourceID)
Return user account in Sun Java System Identity Server to which the subject is mapped. The returned Map is subject to changes per SAML specification.
Parameters:
subject - Subject to be mapped
sourceID - source ID for the site from which the subject originated.
Returns:
Map which contains NAME and ORG keys, value of the NAME key is the user DN, value of thes ORG is the user organization DN. Return empty map if the mapped user could not be obtained from the subject.