public class SAMLLoginUtil
extends java.lang.Object
Constructor and Description |
---|
SAMLLoginUtil() |
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.
|
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
java.lang.Exception
java.io.UnsupportedEncodingException
java.net.URISyntaxException
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
loginURL
- username
- password
- java.lang.Exception