ForwardMessage

class ForwardMessage constructor(val body: ForwardMessage.ForwardBody, val from: DID, val to: DID, val encryptedMessage: String, val id: String = UUID.randomUUID().toString())(source)

The ForwardMessage class represents a message for forwarding data using the DIDComm protocol. It contains the necessary information for creating a forward message, including the message body, sender and recipient DIDs, encrypted message, and an optional ID.

Parameters

body

The body of the forward message.

from

The sender DID of the forward message.

to

The recipient DID of the forward message.

encryptedMessage

The encrypted message to be forwarded.

id

The optional ID of the forward message. If not provided, a random UUID will be generated.

Constructors

Link copied to clipboard
constructor(body: ForwardMessage.ForwardBody, from: DID, to: DID, encryptedMessage: String, id: String = UUID.randomUUID().toString())

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class ForwardBody(val next: String)

Represents the body of a forward message.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val from: DID
Link copied to clipboard
Link copied to clipboard
val to: DID

Functions

Link copied to clipboard

Creates a Message object with the provided data.