public final class FtpsFileSystemConfigBuilder extends FtpFileSystemConfigBuilder
Modifier and Type | Method and Description |
---|---|
FtpsDataChannelProtectionLevel |
getDataChannelProtectionLevel(FileSystemOptions opts)
Gets the data channel protection level (PROT).
|
FtpsMode |
getFtpsMode(FileSystemOptions opts)
Returns the FTPS mode.
|
String |
getFtpsType(FileSystemOptions opts)
Deprecated.
As of 2.1, use
getFtpsMode(FileSystemOptions) |
static FtpsFileSystemConfigBuilder |
getInstance()
Gets the singleton builder.
|
KeyManager |
getKeyManager(FileSystemOptions opts)
Gets the KeyManager used to provide a client-side certificate if the FTPS server requests it.
|
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)
Sets FTPS mode, either "implicit" or "explicit".
|
void |
setFtpsType(FileSystemOptions opts,
String ftpsType)
Deprecated.
As of 2.1, use
setFtpsMode(FileSystemOptions, FtpsMode) |
void |
setKeyManager(FileSystemOptions opts,
KeyManager keyManager)
Sets the KeyManager used to provide a client-side certificate if the FTPS server requests it.
|
void |
setTrustManager(FileSystemOptions opts,
TrustManager trustManager)
Sets the TrustManager that validates the FTPS server's certificate.
|
getAutodetectUtf8, getConfigClass, getConnectTimeout, getConnectTimeoutDuration, getControlEncoding, getControlKeepAliveReplyTimeout, getControlKeepAliveTimeout, getDataTimeout, getDataTimeoutDuration, getDefaultDateFormat, getEntryParser, getEntryParserFactory, getFileType, getMdtmLastModifiedTime, getPassiveMode, getProxy, getRecentDateFormat, getRemoteVerification, getSaneTransferAbortedOkReplyCodes, getServerLanguageCode, getServerTimeZoneId, getShortMonthNames, getSoTimeout, getSoTimeoutDuration, getTransferAbortedOkReplyCodes, getUserDirIsRoot, setAutodetectUtf8, setConnectTimeout, setConnectTimeout, setControlEncoding, setControlKeepAliveReplyTimeout, setControlKeepAliveTimeout, setDataTimeout, setDataTimeout, setDefaultDateFormat, setEntryParser, setEntryParserFactory, setFileType, setMdtmLastModifiedTime, setPassiveMode, setProxy, setRecentDateFormat, setRemoteVerification, setServerLanguageCode, setServerTimeZoneId, setShortMonthNames, setSoTimeout, setSoTimeout, setTransferAbortedOkReplyCodes, setUserDirIsRoot
getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCharacter, getCharacter, getCharacter, getDouble, getDouble, getDouble, getDuration, getDuration, getDurationInteger, getDurationInteger, getEnum, getEnum, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getLong, getLong, getLong, getParam, getRootURI, getShort, getShort, getShort, getString, getString, hasObject, hasParam, setParam, setParam, setRootURI, toBooleanObject
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, 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 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 KeyManager getKeyManager(FileSystemOptions opts)
opts
- The FileSystemOptions.null
FTPSClient.setKeyManager(KeyManager)
public void setKeyManager(FileSystemOptions opts, KeyManager keyManager)
opts
- The FileSystemOptions.keyManager
- The key manager instance.FTPSClient.setKeyManager(KeyManager)
public 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, TrustManager trustManager)
opts
- The FileSystemOptions.trustManager
- The trust manager instance.FTPSClient.setTrustManager(TrustManager)
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.