public class GridFTPControlChannel extends FTPControlChannel
Modifier and Type | Field and Description |
---|---|
protected Authorization |
authorization |
protected org.ietf.jgss.GSSCredential |
credentials |
protected int |
protection |
protected static int |
TIMEOUT |
CRLF, ftpIn, ftpOut, hasBeenOpened, host, port, rawFtpIn, socket
Constructor and Description |
---|
GridFTPControlChannel(java.io.InputStream in,
java.io.OutputStream out) |
GridFTPControlChannel(java.lang.String host,
int port) |
Modifier and Type | Method and Description |
---|---|
void |
authenticate(org.ietf.jgss.GSSCredential credential)
Performs authentication with specified user credentials.
|
void |
authenticate(org.ietf.jgss.GSSCredential credential,
java.lang.String username)
Performs authentication with specified user credentials and
a specific username (assuming the user dn maps to the passed username).
|
Authorization |
getAuthorization()
Returns authorization method for the control channel.
|
protected org.ietf.jgss.GSSCredential |
getCredentials() |
int |
getProtection()
Returns control channel protection level.
|
void |
setAuthorization(Authorization authorization)
Sets authorization method for the control channel.
|
protected void |
setCredentials(org.ietf.jgss.GSSCredential credentials) |
void |
setProtection(int protection)
Sets data channel protection level.
|
abortTransfer, close, exchange, execute, getBufferedReader, getHost, getLastReply, getOutputStream, getPort, hasBeenOpened, haveStreams, isIPv6, open, read, readInitialReplies, setInputStream, setOutputStream, waitFor, write, writeln, writeStr
waitFor
protected static final int TIMEOUT
protected org.ietf.jgss.GSSCredential credentials
protected Authorization authorization
protected int protection
public GridFTPControlChannel(java.lang.String host, int port)
public GridFTPControlChannel(java.io.InputStream in, java.io.OutputStream out)
public void setProtection(int protection)
protection
- should be
CLEAR
,
SAFE
, or
PRIVATE
, or
CONFIDENTIAL
.public int getProtection()
CLEAR
,
SAFE
, or
PRIVATE
, or
CONFIDENTIAL
.public void setAuthorization(Authorization authorization)
authorization
- authorization method.public Authorization getAuthorization()
public void authenticate(org.ietf.jgss.GSSCredential credential) throws java.io.IOException, ServerException
credential
- user credentials to use.java.io.IOException
- on i/o errorServerException
- on server refusal or faulty server behaviorpublic void authenticate(org.ietf.jgss.GSSCredential credential, java.lang.String username) throws java.io.IOException, ServerException
credential
- user credentials to use.username
- specific username to authenticate as.java.io.IOException
- on i/o errorServerException
- on server refusal or faulty server behaviorprotected void setCredentials(org.ietf.jgss.GSSCredential credentials)
protected org.ietf.jgss.GSSCredential getCredentials()
Copyright © 2013. All Rights Reserved.