|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.glub.secureftp.bean.FTPCommand
com.glub.secureftp.bean.SSLFTPCommand
public class SSLFTPCommand
The SSLFTPCommand class is responsible for handling the SSL
command extensions used in the File Transfer Protocol.
| Field Summary | |
|---|---|
static char |
CLEAR_DATA_CHANNEL
Used to set the PROT mode to clear. |
static char |
CONFIDENTIAL_DATA_CHANNEL
Used to set the PROT mode to confidential. |
static char |
PRIVATE_DATA_CHANNEL
Used to set the PROT mode to private. |
static char |
SAFE_DATA_CHANNEL
Used to set the PROT mode to safe. |
| Constructor Summary | |
|---|---|
SSLFTPCommand(BufferedReader reader,
PrintWriter writer)
Create a new SSLFTPCommand object. |
|
SSLFTPCommand(BufferedReader reader,
PrintWriter writer,
OutputStream sendCmdStream,
OutputStream recvCmdStream)
Create a new SSLFTPCommand object. |
|
| Method Summary | |
|---|---|
void |
auth(String authType)
Specify the authorization type. |
void |
ccc()
Convert the control socket back to a clear control socket. |
void |
pbsz(int bufferSize)
Specify the protection buffer. |
void |
prot(char securityMode)
Specify the protection mode. |
| Methods inherited from class com.glub.secureftp.bean.FTPCommand |
|---|
abort, acct, append, cdup, chdir, delete, forcePasvToUseControlIP, getReply, getReplyCode, getReplyMessage, help, list, mdtm, mkdir, modeZ, nlst, noop, pass, pasv, port, pwd, quit, raw, recvCmd, rename, rest, retrieve, rmdir, sendCmd, sendCmd, setControlIP, setRecvCmdStream, setSendCmdStream, size, store, syst, type, user |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final char PRIVATE_DATA_CHANNEL
PROT mode to private.
public static final char CLEAR_DATA_CHANNEL
PROT mode to clear.
public static final char SAFE_DATA_CHANNEL
PROT mode to safe.
public static final char CONFIDENTIAL_DATA_CHANNEL
PROT mode to confidential.
| Constructor Detail |
|---|
public SSLFTPCommand(BufferedReader reader,
PrintWriter writer)
SSLFTPCommand object.
reader - based on the input stream from the control socket.writer - based on the output stream from the control socket.
public SSLFTPCommand(BufferedReader reader,
PrintWriter writer,
OutputStream sendCmdStream,
OutputStream recvCmdStream)
SSLFTPCommand object.
reader - based on the input stream from the control socket.writer - based on the output stream from the control socket.sendCmdStream - stream used to report commands set to the FTP server.recvCmdStream - stream used to report commands received from the
FTP server.| Method Detail |
|---|
public void auth(String authType)
throws FTPAuthNotSupportedException,
FTPException,
IllegalArgumentException
authType - the auth type to send (e.g. SSL, TLS, etc.)
FTPAuthNotSupportedException - if the server doesn't support this
auth mode (or the auth command).
FTPException - if the FTP server returns an error
code.
IllegalArgumentException - if authType is
missing.
public void pbsz(int bufferSize)
throws FTPException
PROT command.
bufferSize - the size to pad the protection buffer (usually 0).
FTPException - if the FTP server returns an error code.prot(char)
public void prot(char securityMode)
throws FTPException
PBSZ command is sent.
securityMode - the security mode to set the data channel to.
FTPException - if the FTP server returns an error code.PRIVATE_DATA_CHANNEL,
CLEAR_DATA_CHANNEL,
SAFE_DATA_CHANNEL,
CONFIDENTIAL_DATA_CHANNEL,
pbsz(int)
public void ccc()
throws FTPException
FTPException - if the FTP server returns an error code.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||