Host Safeguarder

The HostSafeguarder object allows to handle the sensitive data of a remote host, such as sshUser, sshPassword, etc...

This API is a functional wrapper for Java to handle the Kassaforte's library which works with coroutines and suspendable methods

Author

N7ghtm4r3 - Tecknobit

Since

1.0.4

Functions

Link copied to clipboard
private fun decryptHostData(keyAlias: String, encryptedData: String): String

Method used to decrypt a data of the remote host

Link copied to clipboard

Method used to decrypt the remote host data previously encrypted

Link copied to clipboard
private fun encryptData(keyAlias: String, data: String): String

Method used to encrypt a data of the remote host

Link copied to clipboard
fun generateHostSecretKey(hostId: String, sessionId: String)

Method used to generate a new secret key for a host

Link copied to clipboard
fun removeHostSecretKey(hostId: String, sessionId: String)

Method used to remove the alias of the secret key of a host

Link copied to clipboard
private fun resolveHostSecretKeyAlias(hostId: String, sessionId: String): String

Method used to resolve the alias of the secret key of a host

Link copied to clipboard
fun safeguardRemoteHostData(hostId: String, sessionId: String, sshUser: String, sshPassword: String, networkInterfaceDetails: Pair<String, String>): RemoteHostData
fun safeguardRemoteHostData(hostId: String, sessionId: String, sshUser: String, sshPassword: String, macAddress: String, broadcastIp: String): RemoteHostData

Method used to safeguard the sensitive data of a remote host