public final class FtpsFileSystemConfigBuilder extends FtpFileSystemConfigBuilder
Modifier and Type | Method | Description |
---|---|---|
FtpsDataChannelProtectionLevel |
getDataChannelProtectionLevel(FileSystemOptions opts) |
Gets the data channel protection level (PROT).
|
FtpsMode |
getFtpsMode(FileSystemOptions opts) |
Return the FTPS mode.
|
java.lang.String |
getFtpsType(FileSystemOptions opts) |
Deprecated.
As of 2.1, use
getFtpsMode(FileSystemOptions) |
static FtpsFileSystemConfigBuilder |
getInstance() |
Gets the singleton builder.
|
javax.net.ssl.KeyManager |
getKeyManager(FileSystemOptions opts) |
Gets the KeyManager used to provide a client-side certificate if the FTPS server requests it.
|
javax.net.ssl.TrustManager |
getTrustManager(FileSystemOptions opts) |
Gets the TrustManager that validates the FTPS server's certificate.
|
void |
setDataChannelProtectionLevel(FileSystemOptions opts,
FtpsDataChannelProtectionLevel prot) |
Sets the data channel protection level (PROT).
|
void |
setFtpsMode(FileSystemOptions opts,
FtpsMode ftpsMode) |
Set FTPS mode, either "implicit" or "explicit".
|
void |
setFtpsType(FileSystemOptions opts,
java.lang.String ftpsType) |
Deprecated.
As of 2.1, use
setFtpsMode(FileSystemOptions, FtpsMode) |
void |
setKeyManager(FileSystemOptions opts,
javax.net.ssl.KeyManager keyManager) |
Sets the KeyManager used to provide a client-side certificate if the FTPS server requests it.
|
void |
setTrustManager(FileSystemOptions opts,
javax.net.ssl.TrustManager trustManager) |
Sets the TrustManager that validates the FTPS server's certificate.
|
getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCharacter, getCharacter, getCharacter, getDouble, getDouble, getDouble, getEnum, getEnum, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getLong, getLong, getLong, getParam, getRootURI, getShort, getShort, getShort, getString, getString, hasObject, hasParam, setParam, setParam, setRootURI
getConfigClass, getConnectTimeout, getControlEncoding, getDataTimeout, getDefaultDateFormat, getEntryParser, getEntryParserFactory, getFileType, getPassiveMode, getProxy, getRecentDateFormat, getRemoteVerification, getServerLanguageCode, getServerTimeZoneId, getShortMonthNames, getSoTimeout, getUserDirIsRoot, setConnectTimeout, setControlEncoding, setDataTimeout, setDefaultDateFormat, setEntryParser, setEntryParserFactory, setFileType, setPassiveMode, setProxy, setRecentDateFormat, setRemoteVerification, setServerLanguageCode, setServerTimeZoneId, setShortMonthNames, setSoTimeout, setUserDirIsRoot
public static FtpsFileSystemConfigBuilder getInstance()
public void setFtpsMode(FileSystemOptions opts, FtpsMode ftpsMode)
Note, that implicit mode is not standardized and considered as deprecated. Some unit tests for VFS fail with implicit mode and it is not yet clear if its a problem with Commons VFS/Commons Net or our test server Apache FTP/SSHD.
opts
- The FileSystemOptions.ftpsMode
- The mode to establish a FTPS connection.public FtpsMode getFtpsMode(FileSystemOptions opts)
opts
- The FileSystemOptions.setFtpsType(org.apache.commons.vfs2.FileSystemOptions, java.lang.String)
@Deprecated public void setFtpsType(FileSystemOptions opts, java.lang.String ftpsType)
setFtpsMode(FileSystemOptions, FtpsMode)
Note, that implicit mode is not standardized and considered as deprecated. Some unit tests for VFS fail with implicit mode and it is not yet clear if its a problem with Commons VFS/Commons Net or our test server Apache FTP/SSHD.
opts
- The FileSystemOptions.ftpsType
- The file type.@Deprecated public java.lang.String getFtpsType(FileSystemOptions opts)
getFtpsMode(FileSystemOptions)
opts
- The FileSystemOptions.setFtpsType(org.apache.commons.vfs2.FileSystemOptions, java.lang.String)
public FtpsDataChannelProtectionLevel getDataChannelProtectionLevel(FileSystemOptions opts)
opts
- The FileSystemOptions.FTPSClient.execPROT(String)
public void setDataChannelProtectionLevel(FileSystemOptions opts, FtpsDataChannelProtectionLevel prot)
opts
- The FileSystemOptions.prot
- The PROT value, null
has no effect.FTPSClient.execPROT(String)
public javax.net.ssl.KeyManager getKeyManager(FileSystemOptions opts)
opts
- The FileSystemOptions.null
FTPSClient.setKeyManager(KeyManager)
public void setKeyManager(FileSystemOptions opts, javax.net.ssl.KeyManager keyManager)
opts
- The FileSystemOptions.keyManager
- The key manager instance.FTPSClient.setKeyManager(KeyManager)
public javax.net.ssl.TrustManager getTrustManager(FileSystemOptions opts)
If the params do not contain the key for the trust manager, it will return a trust manger that simply checks this certificate for validity.
opts
- The FileSystemOptions.null
FTPSClient.setTrustManager(TrustManager)
public void setTrustManager(FileSystemOptions opts, javax.net.ssl.TrustManager trustManager)
opts
- The FileSystemOptions.trustManager
- The trust manager instance.FTPSClient.setTrustManager(TrustManager)