aries / net.globalid.aries.features.presentproof.record / ProofRecord / ReceivedRequest

ReceivedRequest

@JsonClass(true) data class ReceivedRequest : ProofRecord

The present proof record in the "received request" state. We are the prover in this case. When we receive a request, we save the corresponding connection ID and the request JSON. We use the thread ID to decorate the response, if there will be one.

Constructors

<init>

The present proof record in the "received request" state. We are the prover in this case. When we receive a request, we save the corresponding connection ID and the request JSON. We use the thread ID to decorate the response, if there will be one.

ReceivedRequest(id: String, connectionContext: ConnectionContext, requestJson: String)

Properties

connectionContext

context about the connection for this instance of the protocol

val connectionContext: ConnectionContext

id

is the wallet record ID.

val id: String

requestJson

the request JSON format

val requestJson: String

Functions

requireProofRequest

Gets parsed ProofRequest object from requestJson

fun requireProofRequest(): ProofRequest

toAcceptedRequest

Converts the ReceivedRequest record to AcceptedRequest record

fun toAcceptedRequest(proofJson: String): AcceptedRequest

toRejectedRequest

Converts the ReceivedRequest record to RejectedRequest record

fun toRejectedRequest(): RejectedRequest