ConnectionAccept

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

Constructors

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

Initializes a new instance of the ConnectionAccept struct with the specified parameters.

constructor(fromMessage: Message)

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

constructor(fromRequest: ConnectionRequest)

Initializes a new instance of the ConnectionAccept struct from the specified request.

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

The makeMessage method creates a new Message object with the specified parameters.