agave-systems/systems-core/src/main/java/org/iplantc/service/transfer/irods/IRODS.java
/**
	 * Creates a new {@link IRODSAccount} using the connection parameters
	 * provided in the constructor.
	 *
	 * @return unverified {@link IRODSAccount} object with the proper {@link AuthScheme} configured.
	 * @throws EncryptionException
	 * @throws JargonException
	 */
Creates a new  IRODSAccount using the connection parameters
provided in the constructor.

@return unverified  IRODSAccount object with the proper  AuthScheme configured.
Creates a new IRODSAccount using the connection parameters provided in the constructor . @return unverified IRODSAccount object with the proper AuthScheme configured .
private IRODSAccount createAccount() throws EncryptionException, JargonException
	{
		IRODSAccount account = null;
		if (type.equals(AuthScheme.GSI)) {
			account = GSIIRODSAccount.instance(host, port, credential, resource);
			account.setZone(zone);
			account.setHomeDirectory(rootDir);
		}
		else
		{
			account = new IRODSAccount(host,port,username, password, rootDir, zone, resource);
			if (type != null)
			{
				account.setAuthenticationScheme(type);
			}
		}
		return account;
	}
private IRODSAccount createAccount ( ) throws EncryptionException , JargonException { IRODSAccount account = null ; if ( type . equals ( AuthScheme . GSI ) ) { account = GSIIRODSAccount . instance ( host , port , credential , resource ) ; account . setZone ( zone ) ; account . setHomeDirectory ( rootDir ) ; } else { account = new IRODSAccount ( host , port , username , password , rootDir , zone , resource ) ; if ( type != null ) { account . setAuthenticationScheme ( type ) ; } } return account ; }
Creates a new {@link IRODSAccount} using the connection parameters
 provided in the constructor.
Creates a new { @link IRODSAccount } using the connection parameters provided in the constructor .