Class GridFTPControlChannel
java.lang.Object
org.globus.ftp.vanilla.BasicClientControlChannel
org.globus.ftp.vanilla.FTPControlChannel
org.globus.ftp.extended.GridFTPControlChannel
GridFTP control channel, unlike the vanilla control channel,
uses GSI autentication.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Authorizationprotected GSSCredentialprivate static org.apache.commons.logging.Logprotected intprotected static final intFields inherited from class FTPControlChannel
CRLF, ftpIn, ftpOut, hasBeenOpened, host, port, rawFtpIn, socket -
Constructor Summary
ConstructorsConstructorDescriptionGridFTPControlChannel(InputStream in, OutputStream out) GridFTPControlChannel(String host, int port) -
Method Summary
Modifier and TypeMethodDescriptionvoidauthenticate(GSSCredential credential) Performs authentication with specified user credentials.voidauthenticate(GSSCredential credential, String username) Performs authentication with specified user credentials and a specific username (assuming the user dn maps to the passed username).Returns authorization method for the control channel.protected GSSCredentialintReturns control channel protection level.voidsetAuthorization(Authorization authorization) Sets authorization method for the control channel.protected voidsetCredentials(GSSCredential credentials) voidsetProtection(int protection) Sets data channel protection level.Methods inherited from class FTPControlChannel
abortTransfer, close, exchange, execute, getBufferedReader, getHost, getLastReply, getOutputStream, getPort, hasBeenOpened, haveStreams, isIPv6, open, read, readInitialReplies, setInputStream, setOutputStream, waitFor, write, writeln, writeStrMethods inherited from class BasicClientControlChannel
waitFor
-
Field Details
-
logger
private static org.apache.commons.logging.Log logger -
TIMEOUT
protected static final int TIMEOUT- See Also:
-
credentials
-
authorization
-
protection
protected int protection
-
-
Constructor Details
-
GridFTPControlChannel
-
GridFTPControlChannel
-
-
Method Details
-
setProtection
public void setProtection(int protection) Sets data channel protection level.- Parameters:
protection- should beCLEAR,SAFE, orPRIVATE, orCONFIDENTIAL.
-
getProtection
public int getProtection()Returns control channel protection level.- Returns:
- control channel protection level:
CLEAR,SAFE, orPRIVATE, orCONFIDENTIAL.
-
setAuthorization
Sets authorization method for the control channel.- Parameters:
authorization- authorization method.
-
getAuthorization
Returns authorization method for the control channel.- Returns:
- authorization method performed on the control channel.
-
authenticate
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
-
authenticate
public void authenticate(GSSCredential credential, String username) throws IOException, ServerException Performs authentication with specified user credentials and a specific username (assuming the user dn maps to the passed username).- Parameters:
credential- user credentials to use.username- specific username to authenticate as.- Throws:
IOException- on i/o errorServerException- on server refusal or faulty server behavior
-
setCredentials
-
getCredentials
-