|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hermesftp.cmd.AbstractFtpCmd net.sf.hermesftp.cmd.impl.FtpCmdProt
public class FtpCmdProt
DATA CHANNEL PROTECTION LEVEL (PROT)
The argument is a single Telnet character code specifying the data channel protection level.
This command indicates to the server what type of data channel protection the client and server will be using. The following codes are assigned:
It is reasonable for a security mechanism not to provide all data channel protection levels. It is also reasonable for a mechanism to provide more protection at a level than is required (for instance, a mechanism might provide Confidential protection, but include integrity-protection in that encoding, due to API or other considerations).
The PROT command must be preceded by a successful protection buffer size negotiation.
If the server does not understand the specified protection level, it should respond with reply code 504.
If the current security mechanism does not support the specified protection level, the server should respond with reply code 536.
If the server has not completed a protection buffer size negotiation with the client, it should respond with a 503 reply code.
The PROT command will be rejected and the server should reply 503 if no previous PBSZ command was issued.
If the server is not willing to accept the specified protection level, it should respond with reply code 534.
If the server is not able to accept the specified protection level, such as if a required resource is unavailable, it should respond with reply code 431. Otherwise, the server must reply with a 200 reply code to indicate that the specified protection level is accepted. *
[Excerpt from RFC-2228, Horowitz and Lunt]
Field Summary |
---|
Constructor Summary | |
---|---|
FtpCmdProt()
|
Method Summary | |
---|---|
void |
execute()
Executes the command. |
java.lang.String |
getHelp()
Returns a short help text for the command. |
boolean |
isAuthenticationRequired()
Returns whether authentication is needed or not. |
Methods inherited from class net.sf.hermesftp.cmd.AbstractFtpCmd |
---|
getAbsPath, getAndResetFileOffset, getArguments, getCtx, getPathArg, getPermission, getToken, handleAsyncCmd, isResponded, msg, msg, msg, msgOut, msgOut, msgOut, out, setArguments, setCtx, setToken |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FtpCmdProt()
Method Detail |
---|
public void execute() throws FtpCmdException
FtpCmdException
- Thrown on any exception occuring while the command is executed.public java.lang.String getHelp()
public boolean isAuthenticationRequired()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |