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 ONE 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 ONE Identity Server to which the subject
is mapped. |
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
getUser
public java.util.Map getUser(Subject subject,
java.lang.String sourceID)
- Return user account in Sun ONE Identity Server to which the subject
is mapped.
The returned Map is subject to changes per SAML specification.
- Returns:
- Map which contains NAME and ORG keys, value of the
NAME key is the user DN, value of the ORG is the user
organization DN. Return empty map if the mapped user could not be
obtained from the subject.