IssueCredential

data class IssueCredential(val id: String = UUID.randomUUID().toString(), val body: IssueCredential.Body, val attachments: Array<AttachmentDescriptor>, val thid: String?, val from: DID, val to: DID)(source)

The IssueCredential class represents a credential issuance in the context of DIDComm messaging.

Constructors

Link copied to clipboard
constructor(id: String = UUID.randomUUID().toString(), body: IssueCredential.Body, attachments: Array<AttachmentDescriptor>, thid: String?, from: DID, to: DID)

Types

Link copied to clipboard
data class Body(val goalCode: String? = null, val comment: String? = null, val replacementId: String? = null, val moreAvailable: String? = null)

Represents the body of an issue credential message.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val from: DID
Link copied to clipboard
val id: String
Link copied to clipboard
val thid: String?
Link copied to clipboard
val to: DID
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks if the object is equal to the current IssueCredential object.

Link copied to clipboard

Retrieves an array of credential strings from the attachments.

Link copied to clipboard
open override fun hashCode(): Int

Calculates the hash code for the IssueCredential object.

Link copied to clipboard

Creates a Message object representing a DIDComm message. This function is used to generate a Message object based on the current state of an IssueCredential object.