IssueCredentialProtocol

A class that represents the issue credential protocol in the DIDCommv2 format.

Constructors

Link copied to clipboard
constructor(stage: IssueCredentialProtocol.Stage, proposeMessage: Message? = null, offerMessage: Message? = null, requestMessage: Message? = null, connector: DIDCommConnection)

The IssueCredentialProtocol class represents a protocol for issuing credentials in the Atala PRISM architecture. It handles different stages of the protocol and communicates with a DIDComm connection to exchange messages.

constructor(message: Message, connector: DIDCommConnection)

Constructs an instance of IssueCredentialProtocol class. This constructor initializes the object with the provided message and connector. It determines the stage of the credential issuance process based on the message type in message, and assigns the corresponding values to the stage and relevant property (propose, offer, or request).

Types

Link copied to clipboard

Represents the different stages of the credential issuance process. The stages are PROPOSE, OFFER, REQUEST, COMPLETED, and REFUSED.

Properties

Link copied to clipboard

The DIDCommConnection object representing the connection used to send and receive messages.

Link copied to clipboard

The OfferCredential object representing the offer message, or null if not applicable.

Link copied to clipboard

The ProposeCredential object representing the propose message, or null if not applicable.

Link copied to clipboard

The RequestCredential object representing the request message, or null if not applicable.

Link copied to clipboard

The current stage of the protocol.

Functions

Link copied to clipboard
suspend fun nextStage()

Proceeds to the next stage of the credential issuance process.