AttachmentData

The AttachmentData interface represents a generic attachment for a DIDComm Message. Any type that conforms to AttachmentData can be used as an attachment.

Inheritors

Types

Link copied to clipboard

The AttachmentBase64 data class represents a DIDComm attachment containing base64-encoded data.

Link copied to clipboard

The AttachmentHeader data class represents the header for a DIDComm attachment.

Link copied to clipboard

The AttachmentJsonData data class represents a DIDComm attachment containing JSON data.

Link copied to clipboard
data class AttachmentJws(val header: AttachmentData.AttachmentHeader, val protected: String, val signature: String) : AttachmentData

The AttachmentJws data class represents a DIDComm attachment containing a JWS (JSON Web Signature).

Link copied to clipboard

The AttachmentJwsData data class represents a DIDComm attachment containing JWS data.

Link copied to clipboard
data class AttachmentLinkData(val links: Array<String>, val hash: String) : AttachmentData

The AttachmentLinkData data class represents a DIDComm attachment containing a link to external data.

Functions

Link copied to clipboard

This method verifies the type of AttachmentData and returns the data as a json string.