Class IDPSSOUtil


  • public class IDPSSOUtil
    extends Object
    The utility class is used by the identity provider to process the authentication request from a service provider and send back a proper response. The identity provider can also send unsolicited response to a service provider to do single sign on and/or federation.
    • Constructor Detail

      • IDPSSOUtil

        public IDPSSOUtil()
    • Method Detail

      • getAuthenticationServiceURL

        public static String getAuthenticationServiceURL​(String realm,
                                                         String hostEntityId,
                                                         jakarta.servlet.http.HttpServletRequest request)
        Returns the authentication service URL of the identity provider
        Parameters:
        realm - the realm name of the identity provider
        hostEntityId - the entity id of the identity provider
        request - the HttpServletRequest object
        Returns:
        the authentication service URL of the identity provider
      • getACSurl

        public static String getACSurl​(String entityId,
                                       String realm,
                                       String wreply)
                                throws WSFederationMetaException
        Returns the assertion consumer service (ACS) URL for the entity.
        Parameters:
        entityId - entity ID of provider
        realm - realm of the provider
        wreply - the ACSURL supplied by the requestor. If supplied, this is checked against the URLs registered for the provider.
        Returns:
        assertion consumer service (ACS) URL for the entity.
        Throws:
        WSFederationMetaException