Java Globus API: Class GridFTPControlChannel
org.globus.ftp.extended
Class GridFTPControlChannel
java.lang.Object
|
+--org.globus.ftp.vanilla.BasicClientControlChannel
|
+--org.globus.ftp.vanilla.FTPControlChannel
|
+--org.globus.ftp.extended.GridFTPControlChannel
- public class GridFTPControlChannel
- extends FTPControlChannel
GridFTP control channel, unlike the vanilla control channel,
uses GSI autentication.
| Methods inherited from class org.globus.ftp.vanilla.FTPControlChannel |
close, exchange, execute, finalize, getBufferedReader, getHost, getOutputStream, getPort, hasBeenOpened, haveStreams, open, read, readInitialReplies, setInputStream, setOutputStream, waitFor, write, writeln, writeStr |
TIMEOUT
protected static final int TIMEOUT
credentials
protected GSSCredential credentials
authorization
protected Authorization authorization
GridFTPControlChannel
public GridFTPControlChannel(String host,
int port)
GridFTPControlChannel
public GridFTPControlChannel(InputStream in,
OutputStream out)
setAuthorization
public void setAuthorization(Authorization authorization)
- Sets authorization method for the control channel.
- Parameters:
authorization - authorization method.
getAuthorization
public Authorization getAuthorization()
- Returns authorization method for the control channel.
- Returns:
- authorization method performed on the control channel.
authenticate
public void authenticate(GSSCredential credential)
throws IOException,
ServerException
- Performs authentication with specified user credentials.
- Parameters:
credential - user credentials to use.- Throws:
IOException - on i/o errorServerException - on server refusal or faulty server behavior
setCredentials
protected void setCredentials(GSSCredential credentials)
getCredentials
protected GSSCredential getCredentials()