public class FtpsServerChannel extends FtpServerChannel implements FtpConstants
FtpServerChannel
to support the FTPS protocol. It overrides:
createFtpSocketFactory
.
This returns an SocketFactory
, which creates Secure Sockets.
policy check function
which is called before every
comand is executed. It enforces the policy as defined in FtpsServer
.
Thread.State, Thread.UncaughtExceptionHandler
m_ClientHost, m_CommandLineInput, m_ControlIn, m_ControlOut, m_ControlSocket, m_ControlSocketTimeout, m_ControlWriter, m_FtpSocketFactory, m_ReachedMaximumConnections, m_ReplyToken, m_Username
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
ACCEPT_QUEUE_SIZE, ACCESS_DENIED, ADMIN_COMMAND, ADMIN_OFF, ADMIN_ON, ANONYMOUS_ALLOWED, ANONYMOUS_USER_NOT_ALLOWED, ANONYMOUS_USERNAME, AUTH_COMMAND, BANNER_TEXT, CCC_COMMAND, CDUP_COMMAND, COMMAND_CHARACTER_SET_IS_USER_CHARACTER_SET, CWD_COMMAND, DATA_SOCKET_ERR, DEFAULT_COMMAND_CHARACTER_SET, DEFAULT_PORT, DELE_COMMAND, ERR_SETTING_SOCKET_ACTIVE, ERR_SETTING_SOCKET_PASV, ERR_SSL_SOCKETS, FILE_NOT_FOUND, FILE_RETR_FAIL, FILE_STOR_FAIL, FOLDER_FOUND, FOLDER_HAS_ITEMS, FOLDER_NOT_FOUND, FOLDERLINKS_EXIST, FTP_DESCRIPTIVE_NAME, FTP_NAME, FTP_STATUS, FTPS_NAME, HOST_ADDRESS, HOST_NAME, IMPLICIT_SECURITY, INVALID_ARGUMENT, LAST, LATIN_1, LIBRARY_VERSION, LINK_IS_BROKEN, LIST_COMMAND, LIST_FAIL, LN_COMMAND, LOCALE_COUNTRY, LOCALE_LANGUAGE, LOCALHOST, LOCALHOST_DEFAULT, LOGIN_FAILED, MAXIMUM_CONNECTIONS, MKD_COMMAND, NLST_COMMAND, NO_ERR, NOOP_COMMAND, NORMALIZE_PATH_ERR, NOT_DOCUMENT_TYPE, NOT_FOLDER_TYPE, NOT_LOGGED_IN, PASS_COMMAND, PASV_COMMAND, PBSZ_COMMAND, PORT, PORT_COMMAND, PROT_COMMAND, PWD_COMMAND, QUIT_COMMAND, REQ_DENIED_BY_POLICY, RETR_COMMAND, RMD_COMMAND, RNFR_COMMAND, RNTO_COMMAND, ROOT_FOLDER, SESSION_TIMEOUT_PERIOD, SETCHARACTERSET_COMMAND, SETCOMMANDCHARACTERSET_COMMAND, SETLANGUAGE_COMMAND, SHOWCHARACTERSET_COMMAND, SHOWLANGUAGE_COMMAND, STATS_COMMAND, STOR_COMMAND, SYST_COMMAND, SYSTEM_USERNAME, TOO_MANY_ARGUMENTS, TYPE_COMMAND, UNKNOWN_FLAG, USER_COMMAND, WALLET_LOCATION, XMKD_COMMAND, XPWD_COMMAND, XRMD_COMMAND
Constructor and Description |
---|
FtpsServerChannel(FtpServer server,
Socket controlSocket,
int key,
String threadName,
boolean reachedMaximumConnections,
boolean isImplicit) |
Modifier and Type | Method and Description |
---|---|
protected FtpSocketFactory |
createFtpSocketFactory(InetAddress localhost,
int localControlPort,
InetAddress clientHost,
int clientControlPort)
Creates a socket factory with the InetAddresses as given and the
ports minus 1.
|
boolean |
hasImplicitSecurity() |
boolean |
isControlChannelSecure() |
boolean |
isDataChannelSecure() |
protected boolean |
satisfiesPolicy(String cmd,
String args)
Validates channel protection, before executing a command.
|
void |
secureControlChannel() |
void |
secureDataChannel() |
closeConnection, disconnect, getChannelKey, getCommandLine, getControlSocket, getControlSocketTimeout, getFdkSession, getFtpServer, getFtpSession, getFtpSocketFactory, getReplyToken, getUsername, handleCommandThrowable, handleFtpException, handleInterruptedIOException, handleThrowable, isSameClientHost, logUser, run, sendAnswer, setControlSocketTimeout, setFtpSession, setReplyToken, setShouldContinue, setupIO, setUsername
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
protected FtpSocketFactory createFtpSocketFactory(InetAddress localhost, int localControlPort, InetAddress clientHost, int clientControlPort)
FtpServerChannel
createFtpSocketFactory
in class FtpServerChannel
protected boolean satisfiesPolicy(String cmd, String args)
satisfiesPolicy
in class FtpServerChannel
public boolean isControlChannelSecure()
public boolean isDataChannelSecure()
public boolean hasImplicitSecurity()
public void secureControlChannel() throws IOException, Exception
IOException
Exception
public void secureDataChannel()
Copyright © 2023. All rights reserved.