Class SftpDatasink
java.lang.Object
net.datenwerke.treedb.service.treedb.AbstractNode<AbstractDatasinkManagerNode>
net.datenwerke.security.service.treedb.entities.SecuredAbstractNode<AbstractDatasinkManagerNode>
net.datenwerke.rs.core.service.datasinkmanager.entities.AbstractDatasinkManagerNode
net.datenwerke.rs.core.service.datasinkmanager.entities.DatasinkDefinition
net.datenwerke.rs.ftp.service.ftp.definitions.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:
-
Field Summary
Fields inherited from class net.datenwerke.treedb.service.treedb.AbstractNode
FLAG_CONFIGURATION_PROTECTION, FLAG_WRITE_PROTECTIONFields inherited from interface net.datenwerke.rs.core.service.datasinkmanager.HasDefaultConfiguration
DEFAULT_EXPORT_FILENAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultConfiguration(String fileEnding) getHost()Gets the decrypted password.intgetPort()byte[]Gets the decrypted private key bytes.Gets the decrypted private key passphrase.voidsetAuthenticationType(String authenticationType) voidvoidvoidsetPassword(String password) Encrypts and sets the password.voidsetPort(int port) voidsetPrivateKey(byte[] privateKey) Sets and encrypts the given private key.voidsetPrivateKeyPassphrase(String privateKeyPassphrase) Sets and encrypts the private key passphrase.voidsetUsername(String username) Methods inherited from class net.datenwerke.rs.core.service.datasinkmanager.entities.DatasinkDefinition
escapeString, getDescription, getKey, getName, hasChildren, setDescription, setKey, setName, toStringMethods inherited from class net.datenwerke.rs.core.service.datasinkmanager.entities.AbstractDatasinkManagerNode
getNodeName, getRootNodeNameMethods inherited from class net.datenwerke.security.service.treedb.entities.SecuredAbstractNode
getAcl, getOwner, getParentTarget, setAcl, setOwnerMethods inherited from class net.datenwerke.treedb.service.treedb.AbstractNode
addChild, addChild, addFlag, clearFlags, equals, getBaseType, getChildren, getChildrenOfType, getChildrenSorted, getCreatedOn, getDeniedChildren, getDescendants, getDescendants, getFlags, getId, getIdOrOldTransient, getLastUpdated, getManagerClass, getOldTransientId, getOldTransientKey, getParent, getPosition, getRootLine, getSupportedChildren, getVersion, hasChildrenOfType, hasDescendantsOfType, hasFlag, hashCode, idsMatch, isAncestorOf, isConfigurationProtected, isFolder, isRoot, isUpdateLastUpdated, isWriteProtected, removeChild, removeFlag, setChildren, setConfigurationProtection, setCreatedOn, setFlags, setId, setLastUpdated, setOldTransientId, setOldTransientKey, setParent, setPosition, setUpdateLastUpdated, setVersion, setWriteProtection, wouldContainFlag
-
Constructor Details
-
SftpDatasink
public SftpDatasink()
-
-
Method Details
-
getHost
- Specified by:
getHostin interfaceHostDatasink
-
getUsername
- Specified by:
getUsernamein interfaceHostDatasink
-
setUsername
-
getPort
public int getPort()- Specified by:
getPortin interfaceHostDatasink
-
setPort
public void setPort(int port) -
getFolder
- Specified by:
getFolderin interfaceFolderedDatasink
-
setFolder
-
setHost
-
getPassword
Gets the decrypted password.- Returns:
- the decrypted password
-
setPassword
Encrypts and sets the password.- Parameters:
password- the password to encrypt and set.
-
getAuthenticationType
-
setAuthenticationType
-
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
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
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
- Specified by:
getDatasinkServicein interfaceHasBasicDatasinkService
-
getDefaultConfiguration
- Specified by:
getDefaultConfigurationin interfaceHasDefaultConfiguration
-