Class SftpDatasink

All Implemented Interfaces:
Serializable, FolderedDatasink, HasBasicDatasinkService, HasDefaultConfiguration, HostDatasink, HierarchicalSecurityTarget, Owneable, SecurityTarget
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@GenerateDto(dtoPackage="net.datenwerke.rs.ftp.client.ftp.dto",poso2DtoPostProcessors=SftpDatasink2DtoPostProcessor.class,additionalFields={,},icon="arrow-circle-up") @Indexed public class SftpDatasink extends DatasinkDefinition implements HostDatasink, FolderedDatasink
Used to define SFTP datasinks that can be used in ReportServer to send reports to a given SFTP server.
See Also:
  • Constructor Details

    • SftpDatasink

      public SftpDatasink()
  • Method Details

    • getHost

      public String getHost()
      Specified by:
      getHost in interface HostDatasink
    • getUsername

      public String getUsername()
      Specified by:
      getUsername in interface HostDatasink
    • setUsername

      public void setUsername(String username)
    • getPort

      public int getPort()
      Specified by:
      getPort in interface HostDatasink
    • setPort

      public void setPort(int port)
    • getFolder

      public String getFolder()
      Specified by:
      getFolder in interface FolderedDatasink
    • setFolder

      public void setFolder(String folder)
    • setHost

      public void setHost(String host)
    • getPassword

      public String getPassword()
      Gets the decrypted password.
      Returns:
      the decrypted password
    • setPassword

      public void setPassword(String password)
      Encrypts and sets the password.
      Parameters:
      password - the password to encrypt and set.
    • getAuthenticationType

      public String getAuthenticationType()
    • setAuthenticationType

      public void setAuthenticationType(String authenticationType)
    • getPrivateKey

      public byte[] getPrivateKey()
      Gets the decrypted private key bytes.
      Returns:
      decrypted private key bytes
    • setPrivateKey

      public void setPrivateKey(byte[] privateKey)
      Sets and encrypts the given private key.
      Parameters:
      privateKey - private key bytes
    • getPrivateKeyPassphrase

      public String getPrivateKeyPassphrase()
      Gets the decrypted private key passphrase. May be null if the private key does not contain a passphrase.
      Returns:
      the decrypted private key passphrase or null if the private key does not contain a passphrase.
    • setPrivateKeyPassphrase

      public void setPrivateKeyPassphrase(String privateKeyPassphrase)
      Sets and encrypts the private key passphrase. Null is a valid value if the private key does not contain a passphrase.
      Parameters:
      privateKeyPassphrase - the private key passphrase.
    • getDatasinkService

      public BasicDatasinkService getDatasinkService()
      Specified by:
      getDatasinkService in interface HasBasicDatasinkService
    • getDefaultConfiguration

      public DatasinkConfiguration getDefaultConfiguration(String fileEnding)
      Specified by:
      getDefaultConfiguration in interface HasDefaultConfiguration