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)
Return 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.
|
String |
getKeyPW(FileSystemOptions opts)
get the key password.
|
String |
getKeyStore(FileSystemOptions opts)
get the keyStore path.
|
String |
getKeyStorePW(FileSystemOptions opts)
get the keyStore password.
|
TrustManager |
getTrustManager(FileSystemOptions opts)
Gets the TrustManager that validates the FTPS server's certificate.
|
String |
getTrustStore(FileSystemOptions opts)
get the keyStore path.
|
String |
getTrustStorePW(FileSystemOptions opts)
get the trustStore password.
|
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,
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 |
setKeyPW(FileSystemOptions opts,
String keyPW)
Set the Key password.
|
void |
setKeyStore(FileSystemOptions opts,
String keyStore)
Set the key store.
|
void |
setKeyStorePW(FileSystemOptions opts,
String keyStorePW)
Set the key store password.
|
void |
setTrustManager(FileSystemOptions opts,
TrustManager trustManager)
Sets the TrustManager that validates the FTPS server's certificate.
|
void |
setTrustStore(FileSystemOptions opts,
String trustStore)
Set the key store.
|
void |
setTrustStorePW(FileSystemOptions opts,
String trustStorePW)
Set the trust store password.
|
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, setUserDirIsRootgetBoolean, 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, setRootURIpublic 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)public void setKeyStore(FileSystemOptions opts, String keyStore)
opts - The FileSystemOptions.keyStore - The path for the keyStore.public String getKeyStore(FileSystemOptions opts)
opts - The FileSystemOptions.public void setTrustStore(FileSystemOptions opts, String trustStore)
opts - The FileSystemOptions.trustStore - The path for the keyStore.public String getTrustStore(FileSystemOptions opts)
opts - The FileSystemOptions.public void setKeyStorePW(FileSystemOptions opts, String keyStorePW)
opts - The FileSystemOptions.keyStorePW - The keyStore password.public String getKeyStorePW(FileSystemOptions opts)
opts - The FileSystemOptions.public void setTrustStorePW(FileSystemOptions opts, String trustStorePW)
opts - The FileSystemOptions.trustStorePW - The trustStore password.public String getTrustStorePW(FileSystemOptions opts)
opts - The FileSystemOptions.public void setKeyPW(FileSystemOptions opts, String keyPW)
opts - The FileSystemOptions.keyPW - The key password.public String getKeyPW(FileSystemOptions opts)
opts - The FileSystemOptions.@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.nullFTPSClient.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.nullFTPSClient.setTrustManager(TrustManager)public void setTrustManager(FileSystemOptions opts, TrustManager trustManager)
opts - The FileSystemOptions.trustManager - The trust manager instance.FTPSClient.setTrustManager(TrustManager)Copyright © 2002–2022 WSO2. All rights reserved.