ConnectionRequest

A class representing a connection request message in the DIDComm protocol. The ConnectionRequest class defines properties and methods for encoding, decoding, and sending connection request messages in the DIDComm protocol.

Constructors

Link copied to clipboard
constructor(from: DID, to: DID, thid: String? = null, body: ConnectionRequest.Body)

Represents a connection request message in the messaging protocol.

constructor(inviteMessage: Message, from: DID)

Initializes a new instance of the ConnectionRequest struct from the specified invitation message.

constructor(inviteMessage: OutOfBandInvitation, from: DID)

Initializes a new instance of the ConnectionRequest struct from the specified out-of-band invitation.

constructor(fromMessage: Message)

Initializes a new instance of the ConnectionRequest struct from the specified message.

Types

Link copied to clipboard
data class Body(val goalCode: String? = null, val goal: String? = null, val accept: Array<String>? = null)

The body of the connection acceptance message, which is the same as the body of the invitation message

Properties

Link copied to clipboard
Link copied to clipboard
lateinit var from: DID
Link copied to clipboard
var id: String
Link copied to clipboard
var thid: String?
Link copied to clipboard
lateinit var to: DID
Link copied to clipboard

Functions

Link copied to clipboard

Creates a Message object based on the current state of the ConnectionRequest instance.