Brownie Host

@Entity
open class BrownieHost : EquinoxItem

The BrownieHost class is useful to represent a Brownie's host

Author

N7ghtm4r3 - Tecknobit

See also

EquinoxItem

Constructors

Link copied to clipboard
constructor()
Constructor to instantiate the object
constructor(id: String, name: String, hostAddress: String, status: HostStatus, sshUser: String, sshPassword: String, session: BrownieSession, macAddress: String, broadcastIp: String, events: List<HostHistoryEvent>, services: List<BrownieHostService>, insertionDate: Long)
Constructor to instantiate the object

Properties

Link copied to clipboard
open val broadcastIp: String
broadcastIp the ip address of the remote host network interface
Link copied to clipboard
Link copied to clipboard
events the events related to the lifecycle of the host
Link copied to clipboard
protected val hItem: JsonHelper
Link copied to clipboard
hostAddress the address of the host
Link copied to clipboard
protected val id: String
Link copied to clipboard
insertionDate the date when the host has been inserted in the system
Link copied to clipboard
open val macAddress: String
macAddress the physical mac address of the remote host network interface
Link copied to clipboard
val name: String
name the name of the host
Link copied to clipboard
services the services attached to the host
Link copied to clipboard
session the owner session of the host
Link copied to clipboard
open val sshPassword: String
sshPassword the password to use for the SSH connection
Link copied to clipboard
open val sshUser: String
sshUser the user to use for the SSH connection
Link copied to clipboard
status the current status of the host

Functions

Link copied to clipboard
private open fun decryptSensitiveData()
Method used to decrypt the remote host's sensitive data
Link copied to clipboard
private open fun encryptSensitiveData()
Method used to encrypt the remote host's sensitive data
Link copied to clipboard
open fun getId(): String
Link copied to clipboard
open fun getService(serviceId: String): BrownieHostService
Method to retrieve the specified service from to the host
Link copied to clipboard
private open fun handleSensitiveData(hostData: RemoteHostData)
Method used to handle the sensitive data of the remote host, assigning the encrypted or decrypted values to the fields
Link copied to clipboard
open fun hasService(serviceId: String): Boolean
Method to check whether the specified service belongs to the host
Link copied to clipboard
Method used to handle the remote host's sensitive data, decrypting and after custom usage, encrypting again
Link copied to clipboard
open fun isOffline(): Boolean
Method to check whether the host is currently OFFLINE
Link copied to clipboard
open fun isOnline(): Boolean
Method to check whether the host is currently ONLINE
Link copied to clipboard
open fun isRemoteHost(): Boolean
Method to check whether the host is remotely connected
Link copied to clipboard
Method used to list the names of the running services of this host
Link copied to clipboard
Method used to list the pids of the running services of this host
Link copied to clipboard
open fun toString(): String