Class DefaultIDPAccountMapper

  • All Implemented Interfaces:
    IDPAccountMapper

    public class DefaultIDPAccountMapper
    extends DefaultAccountMapper
    implements IDPAccountMapper
    This class DefaultIDPAccountMapper is the default implementation of the IDPAccountMapper that is used to map the SAML protocol objects to the user accounts. at the IdentityProvider side of the WS-Federation implementation. Custom implementations may extend from this class to override some of these implementations if they choose to do so.
    • Constructor Detail

      • DefaultIDPAccountMapper

        public DefaultIDPAccountMapper()
    • Method Detail

      • getNameID

        public NameIdentifier getNameID​(Object session,
                                        String realm,
                                        String hostEntityID,
                                        String remoteEntityID)
                                 throws WSFederationException
        Returns the user's NameIDinformation that contains account federation with the corresponding remote and local entities.
        Specified by:
        getNameID in interface IDPAccountMapper
        Parameters:
        session - Session object.
        realm - Realm where user resides.
        hostEntityID - EntityID of the hosted provider.
        remoteEntityID - EntityID of the remote provider.
        Returns:
        the NameID corresponding to the authenticated user. null if the authenticated user does not container account federation information.
        Throws:
        WSFederationException - if any failure.