com.ibm.tivoli.maximo.watson.analytics.util

Class SAMLLoginUtil

  • java.lang.Object
    • com.ibm.tivoli.maximo.watson.analytics.util.SAMLLoginUtil


  • public class SAMLLoginUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      SAMLLoginUtil() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String getAuthorizationCode(CloudEnv env, java.lang.String loginURL, java.lang.String username, java.lang.String password, java.lang.String clientid)
      Get the authorization code based on username, password, and clientid First Perform an SAML Interactive login by setting and processing the HTTP and HTML.
      static void makeLogin(CloudEnv env, org.apache.http.client.HttpClient client, java.lang.String username, java.lang.String password)
      Makes HTTP requests to login.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SAMLLoginUtil

        public SAMLLoginUtil()
    • Method Detail

      • makeLogin

        public static void makeLogin(CloudEnv env,
                                     org.apache.http.client.HttpClient client,
                                     java.lang.String username,
                                     java.lang.String password)
                              throws java.lang.Exception,
                                     java.io.UnsupportedEncodingException,
                                     java.net.URISyntaxException
        Makes HTTP requests to login.
        Throws:
        java.lang.Exception
        java.io.UnsupportedEncodingException
        java.net.URISyntaxException
      • getAuthorizationCode

        public static java.lang.String getAuthorizationCode(CloudEnv env,
                                                            java.lang.String loginURL,
                                                            java.lang.String username,
                                                            java.lang.String password,
                                                            java.lang.String clientid)
                                                     throws java.lang.Exception
        Get the authorization code based on username, password, and clientid First Perform an SAML Interactive login by setting and processing the HTTP and HTML. If successful, an authorization code is returned
        Parameters:
        loginURL -
        username -
        password -
        Returns:
        Http client configured the session cookies or null.
        Throws:
        java.lang.Exception