A JSON object that gives access to the actual content of the attachment.
This MUST contain at least one of the following subfields, and enough of them to allow access to the data:
Value parameters
- base64
-
OPTIONAL. Base64url-encoded data, when representing arbitrary content inline instead of via links.
- hash
-
OPTIONAL. The hash of the content encoded in multi-hash format. Used as an integrity check for the attachment, and MUST be used if the data is referenced via the links data attribute.
- json
-
OPTIONAL. Directly embedded JSON data, when representing content inline instead of via links, and when the content is natively conveyable as JSON.
- jws
-
OPTIONAL. A JWS in detached content mode, where the payload field of the JWS maps to base64 or to something fetchable via links. This allows attachments to be signed. The signature need not come from the author of the message.
- links
-
OPTIONAL. A list of zero or more locations at which the content may be fetched. This allows content to be attached by reference instead of by value.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class AttachmentDataAnyclass AttachmentDataBase64class AttachmentDataJWSclass AttachmentDataJsonclass AttachmentDataLinks