org.apache.commons.net.ftp
public class FTPSClient extends FTPClient
Since: 2.0
Version: $Id: FTPSClient.java 658520 2008-05-21 01:14:11Z sebb $
Field Summary | |
---|---|
static String | KEYSTORE_ALGORITHM keystore algorithm name. |
static String | PROVIDER provider name. |
static String | STORE_TYPE truststore type. |
static String | TRUSTSTORE_ALGORITHM truststore algorithm name. |
Constructor Summary | |
---|---|
FTPSClient()
Constructor for FTPSClient. | |
FTPSClient(boolean isImplicit)
Constructor for FTPSClient. | |
FTPSClient(String protocol)
Constructor for FTPSClient. | |
FTPSClient(String protocol, boolean isImplicit)
Constructor for FTPSClient. |
Method Summary | |
---|---|
void | execPBSZ(long pbsz)
PBSZ command. pbsz value: 0 to (2^32)-1 decimal integer. |
void | execPROT(String prot)
PROT command.
C - Clear
S - Safe(SSL protocol only)
E - Confidential(SSL protocol only)
P - Private |
String | getAuthValue()
Return AUTH command use value. |
String[] | getEnabledCipherSuites()
Returns the names of the cipher suites which could be enabled
for use on this connection.
|
String[] | getEnabledProtocols()
Returns the names of the protocol versions which are currently
enabled for use on this connection.
|
boolean | getEnableSessionCreation()
Returns true if new SSL sessions may be established by this socket.
|
boolean | getNeedClientAuth()
Returns true if the socket will require client authentication.
|
TrustManager | getTrustManager()
Get the currently configured TrustManager.
|
boolean | getUseClientMode()
Returns true if the socket is set to use client mode
in its first handshake.
|
boolean | getWantClientAuth()
Returns true if the socket will request client authentication.
|
void | setAuthValue(String auth)
Set AUTH command use value.
|
void | setEnabledCipherSuites(String[] cipherSuites)
Controls which particular cipher suites are enabled for use on this
connection. |
void | setEnabledProtocols(String[] protocolVersions)
Controls which particular protocol versions are enabled for use on this
connection. |
void | setEnabledSessionCreation(boolean isCreation)
Controls whether new a SSL session may be established by this socket. |
void | setKeyManager(KeyManager keyManager)
Set a KeyManager to use
|
void | setNeedClientAuth(boolean isNeedClientAuth)
Configures the socket to require client authentication. |
void | setTrustManager(TrustManager trustManager)
Override the default TrustManager to use.
|
void | setUseClientMode(boolean isClientMode)
Configures the socket to use client (or server) mode in its first
handshake. |
void | setWantClientAuth(boolean isWantClientAuth)
Configures the socket to request client authentication,
but only if such a request is appropriate to the cipher
suite negotiated. |
Throws: NoSuchAlgorithmException A requested cryptographic algorithm is not available in the environment.
Parameters: isImplicit The secutiry mode(Implicit/Explicit).
Throws: NoSuchAlgorithmException A requested cryptographic algorithm is not available in the environment.
Parameters: protocol the protocol
Throws: NoSuchAlgorithmException A requested cryptographic algorithm is not available in the environment.
Parameters: protocol the protocol isImplicit The secutiry mode(Implicit/Explicit).
Throws: NoSuchAlgorithmException A requested cryptographic algorithm is not available in the environment.
Parameters: pbsz Protection Buffer Size.
Throws: SSLException If it server reply code not equal "200". IOException If an I/O error occurs while either sending the command.
Parameters: prot Data Channel Protection Level.
Throws: SSLException If it server reply code not equal "200". IOException If an I/O error occurs while either sending the command.
Returns: AUTH command use value.
Returns: An array of cipher suite names.
Returns: An array of protocols.
Returns: true - Indicates that sessions may be created; this is the default. false - indicates that an existing session must be resumed.
Returns: true - If the server mode socket should request that the client authenticate itself.
Returns: A TrustManager instance.
Returns: true - If the socket should start its first handshake in "client" mode.
Returns: true - If the server mode socket should request that the client authenticate itself.
Parameters: auth AUTH command use value.
Parameters: cipherSuites The cipher suites.
Parameters: protocolVersions The protocol versions.
Parameters: isCreation The established socket flag.
Parameters: keyManager The KeyManager implementation to set.
Parameters: isNeedClientAuth The need client auth flag.
Parameters: trustManager The TrustManager implementation to set.
Parameters: isClientMode The use client mode flag.
Parameters: isWantClientAuth The want client auth flag.