public class GridFTPControlChannel extends FTPControlChannel
| Modifier and Type | Field | Description |
|---|---|---|
protected Authorization |
authorization |
|
protected GSSCredential |
credentials |
|
protected int |
protection |
|
protected static int |
TIMEOUT |
CRLF, ftpIn, ftpOut, hasBeenOpened, host, port, rawFtpIn, socket| Constructor | Description |
|---|---|
GridFTPControlChannel(InputStream in,
OutputStream out) |
|
GridFTPControlChannel(String host,
int port) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
authenticate(GSSCredential credential) |
Performs authentication with specified user credentials.
|
void |
authenticate(GSSCredential credential,
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 GSSCredential |
getCredentials() |
|
int |
getProtection() |
Returns control channel protection level.
|
void |
setAuthorization(Authorization authorization) |
Sets authorization method for the control channel.
|
protected void |
setCredentials(GSSCredential credentials) |
|
void |
setProtection(int protection) |
Sets data channel protection level.
|
waitForabortTransfer, close, exchange, execute, getBufferedReader, getHost, getLastReply, getOutputStream, getPort, hasBeenOpened, haveStreams, isIPv6, open, read, readInitialReplies, setInputStream, setOutputStream, waitFor, write, writeln, writeStrprotected static final int TIMEOUT
protected GSSCredential credentials
protected Authorization authorization
protected int protection
public GridFTPControlChannel(String host, int port)
public GridFTPControlChannel(InputStream in, 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(GSSCredential credential) throws IOException, ServerException
credential - user credentials to use.IOException - on i/o errorServerException - on server refusal or faulty server behaviorpublic void authenticate(GSSCredential credential, String username) throws IOException, ServerException
credential - user credentials to use.username - specific username to authenticate as.IOException - on i/o errorServerException - on server refusal or faulty server behaviorprotected void setCredentials(GSSCredential credentials)
protected GSSCredential getCredentials()
Copyright © 2018. All rights reserved.