@ComponentProfile(summary="SFTP Authentication Provider that wraps other providers.") public class SftpAuthenticationWrapper extends java.lang.Object implements SftpAuthenticationProvider
SftpAuthenticationProvider
that wraps other SftpAuthenticationProvider
instances.In the adapter configuration file this class is aliased as sftp-authentication-wrapper which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
SftpAuthenticationWrapper() |
SftpAuthenticationWrapper(SftpAuthenticationProvider... auths) |
Modifier and Type | Method and Description |
---|---|
SftpClient |
connect(SftpClient sftp,
FileTransferConnection.UserInfo ui) |
java.lang.Boolean |
getLogExceptions() |
java.util.List<SftpAuthenticationProvider> |
getProviders() |
void |
setLogExceptions(java.lang.Boolean b)
Whether or not to log exceptions from each provider.
|
void |
setProviders(java.util.List<SftpAuthenticationProvider> list) |
public SftpAuthenticationWrapper()
public SftpAuthenticationWrapper(SftpAuthenticationProvider... auths)
public SftpClient connect(SftpClient sftp, FileTransferConnection.UserInfo ui) throws FileTransferException, java.io.IOException, PasswordException
connect
in interface SftpAuthenticationProvider
FileTransferException
java.io.IOException
PasswordException
public java.util.List<SftpAuthenticationProvider> getProviders()
public void setProviders(java.util.List<SftpAuthenticationProvider> list)
list
- the providerspublic java.lang.Boolean getLogExceptions()
public void setLogExceptions(java.lang.Boolean b)
b
- true to enable logging, default is false if not otherwise specified.