agave-common/common-api/src/main/java/org/iplantc/service/common/auth/AuthServiceClient.java
/**
	 * This method invokes the iPlant auth service using the credentials from the
	 * constructor. It returns true on success and null on failure or exception.
	 * 
	 * @return int result of authenticating with the credentials from the constructor
	 * @throws Exception 
	 */
This method invokes the iPlant auth service using the credentials from the
constructor. It returns true on success and null on failure or exception.

@return int result of authenticating with the credentials from the constructor
@throws Exception
This method invokes the iPlant auth service using the credentials from the constructor . It returns true on success and null on failure or exception . @return int result of authenticating with the credentials from the constructor @throws Exception
public int login() throws Exception
	{
		HTTPSClient client = new HTTPSClient(Settings.IPLANT_AUTH_SERVICE, username, pass);
		String response = client.getText();
		JSONObject json = null;
		if (!StringUtils.isEmpty(response))
		{
			json = new JSONObject(response);
			if (json.has("status") && json.getString("status").equalsIgnoreCase("success")) 
				return Verifier.RESULT_VALID;
			else
				return Verifier.RESULT_INVALID;
		} else {
			return Verifier.RESULT_INVALID;
		}
	}
public int login ( ) throws Exception { HTTPSClient client = new HTTPSClient ( Settings . IPLANT_AUTH_SERVICE , username , pass ) ; String response = client . getText ( ) ; JSONObject json = null ; if ( ! StringUtils . isEmpty ( response ) ) { json = new JSONObject ( response ) ; if ( json . has ( "status" ) && json . getString ( "status" ) . equalsIgnoreCase ( "success" ) ) return Verifier . RESULT_VALID ; else return Verifier . RESULT_INVALID ; } else { return Verifier . RESULT_INVALID ; } }
This method invokes the iPlant auth service using the credentials from the
 constructor.
This method invokes the iPlant auth service using the credentials from the constructor .