Class DefaultIDPAttributeMapper

  • All Implemented Interfaces:
    IDPAttributeMapper

    public class DefaultIDPAttributeMapper
    extends DefaultAttributeMapper
    implements IDPAttributeMapper
    This class DefaultAttributeMapper implements the IDPAttributeMapper to return the SAML Attribute objects that may be inserted in the SAML Assertion. This IDP attribute mapper reads the attribute map configuration defined in the hosted IDP configuration and construct the SAML Attribute objects. If the mapped values are not present in the data store, this will try to read from the Single sign-on token.
    • Constructor Detail

      • DefaultIDPAttributeMapper

        public DefaultIDPAttributeMapper()
        Constructor
    • Method Detail

      • getAttributes

        public List getAttributes​(Object session,
                                  String hostEntityID,
                                  String remoteEntityID,
                                  String realm)
                           throws WSFederationException
        Returns list of SAML Attribute objects for the IDP framework to insert into the generated Assertion.
        Specified by:
        getAttributes in interface IDPAttributeMapper
        Parameters:
        session - Single sign-on session.
        hostEntityID - EntityID of the hosted entity.
        remoteEntityID - EntityID of the remote entity.
        realm - name of the realm.
        Returns:
        list of Attributess of an authenticated user.
        Throws:
        WSFederationException - if any failure.