com.sun.identity.saml2.plugins
Interface SPAccountMapper


public interface SPAccountMapper

The interface SPAccountMapper is used to identify the local identities that maps the SAML protocol objects such as Assertion, ManageNameIDRequest etc. This mapper interface is used to map the identities only at the SAMLAssertionConsumer, in otherwords, ServiceProvider version of the SAML provider. The implementation of this interface will be used by the SAML framework to retrieve the user identity information for the consumption of generating a user session, or manage the user account information while handling the SAML protocols and it is pluggable through local configuration in the SAML2 plugin. The implementation of this interface may need to consider the deployment of the SAML v2 plugin for example on the OpenSSO platform or on Federation Manager.

See Also:
IDPAccountMapper

Method Summary
 String getIdentity(Assertion assertion, String hostEntityID, String realm)
          Returns the user's disntinguished name or the universal ID for the corresponding SAML Assertion.
 String getIdentity(ManageNameIDRequest manageNameIDRequest, String hostEntityID, String realm)
          Returns the user's disntinguished name or the universal ID for the corresponding SAML ManageNameIDRequest.
 

Method Detail

getIdentity

String getIdentity(Assertion assertion,
                   String hostEntityID,
                   String realm)
                   throws SAML2Exception
Returns the user's disntinguished name or the universal ID for the corresponding SAML Assertion. This method will be invoked by the SAML framework while processing the Assertion and retrieves the identity information.

Parameters:
assertion - SAML Assertion that needs to be mapped to the user.
hostEntityID - EntityID of the hosted provider.
realm - realm or the organization name that may be used to find the user information.
Returns:
user's disntinguished name or the universal ID.
Throws:
SAML2Exception - if any failure.

getIdentity

String getIdentity(ManageNameIDRequest manageNameIDRequest,
                   String hostEntityID,
                   String realm)
                   throws SAML2Exception
Returns the user's disntinguished name or the universal ID for the corresponding SAML ManageNameIDRequest. This method will be invoked by the SAML framework for retrieving the user identity while processing the ManageIDRequest.

Parameters:
manageNameIDRequest - SAML ManageNameIDRequest that needs to be mapped to the user.
hostEntityID - EntityID of the hosted provider.
realm - realm or the organization name that may be used to find the user information.
Returns:
user's disntinguished name or the universal ID.
Throws:
SAML2Exception - if any failure.