Class WSFederationClient


  • public class WSFederationClient
    extends Object
    This class WSFederationClient is used to retrieve the SAML Assertion remotely for a given user session.
    • Constructor Detail

      • WSFederationClient

        public WSFederationClient()
    • Method Detail

      • getUserSAMLAssertion

        public static String getUserSAMLAssertion​(String tokenID,
                                                  String entityID,
                                                  String entityRole)
                                           throws WSFederationException
        Returns the user SAML Assertion for a given session established by WS-Federation protocol.
        Parameters:
        tokenID - the URL encoded session string.
        entityID - the entityID of the federation provider
        entityRole - the entity role of the federation profile. Possible values are "RP" or "IP".
        Returns:
        the user's SAML assertion xml string.
        Throws:
        WSFederationException
      • getUserSAMLAssertion

        public static String getUserSAMLAssertion​(String tokenID,
                                                  String url,
                                                  String entityID,
                                                  String entityRole)
                                           throws WSFederationException
        Returns the user SAML Assertion for a given session established by WS-Federation protocol.
        Parameters:
        tokenID - the URL encoded session string.
        url - the endpoint where the assertion could be obtained
        entityID - the entityID of the federation provider
        entityRole - the entity role of the federation profile. Possible values are "RP" or "IP".
        Returns:
        the user's SAML assertion xml string.
        Throws:
        WSFederationException