Class DefaultAccountMapper

  • Direct Known Subclasses:
    DefaultIDPAccountMapper, DefaultLibrarySPAccountMapper

    public class DefaultAccountMapper
    extends Object
    This class DefaultAccountMapper is a base class extended by DefaultSPAccountMapper and DefaultIDPAccountMapper. This class implements the common interface methods that are required for the SP and IDP account mappers and also provide some utility classes that can be shared between those mappers.
    • Constructor Detail

      • DefaultAccountMapper

        public DefaultAccountMapper()
        Default constructor
    • Method Detail

      • getSearchParameters

        protected Map getSearchParameters​(NameIdentifier nameID,
                                          String realm,
                                          String hostEntityID,
                                          String remoteEntityID)
                                   throws WSFederationException
        Returns the NameIDInfoKey key value pair that can be used for searching the user.
        Parameters:
        nameID - NameID object.
        hostEntityID - hosted EntityID.
        remoteEntityID - remote EntityID.
        Throws:
        WSFederationException
      • getAttribute

        protected String getAttribute​(String realm,
                                      String entityID,
                                      String attributeName)
        Returns the attribute value configured in the given entity SP or IDP configuration.
        Parameters:
        realm - realm name.
        entityID - hosted EntityID.
        attributeName - name of the attribute.