MessageOptions class

Options for configuring protection and cryptographic algorithms for DIDComm messages.

This class allows specifying whether a message should be signed, encrypted, and which algorithms to use.

Implementers

Constructors

MessageOptions({bool shouldSign = false, bool shouldEncrypt = true, KeyWrappingAlgorithm keyWrappingAlgorithm = KeyWrappingAlgorithm.ecdhEs, EncryptionAlgorithm encryptionAlgorithm = EncryptionAlgorithm.a256cbc})
Constructs MessageOptions.
const

Properties

encryptionAlgorithm EncryptionAlgorithm
The encryption algorithm to use for message content.
final
hashCode int
The hash code for this object.
no setterinherited
keyWrappingAlgorithm KeyWrappingAlgorithm
The key wrapping algorithm to use for encryption.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldEncrypt bool
Whether the message should be encrypted.
final
shouldSign bool
Whether the message should be signed.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited