DidcommEncryptedMessage class
A didcomm encrypted message
- Implemented types
Constructors
- DidcommEncryptedMessage({required String protectedHeader, required String tag, required String iv, required String ciphertext, required List recipients})
- DidcommEncryptedMessage.fromJson(dynamic message)
-
DidcommEncryptedMessage.fromPlaintext({KeyWrapAlgorithm keyWrapAlgorithm = KeyWrapAlgorithm.ecdh1PU, EncryptionAlgorithm encryptionAlgorithm = EncryptionAlgorithm.a256cbc, required Map<
String, dynamic> senderPrivateKeyJwk, required List<Map< recipientPublicKeyJwk, required DidcommMessage plaintext})String, dynamic> >
Properties
- ciphertext ↔ String
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- iv ↔ String
-
getter/setter pair
- protectedHeader ↔ String
-
getter/setter pair
- protectedHeaderAlg ↔ String?
-
getter/setter pair
- protectedHeaderApu ↔ String?
-
getter/setter pair
- protectedHeaderApv ↔ String?
-
getter/setter pair
- protectedHeaderEnc ↔ String?
-
getter/setter pair
-
protectedHeaderEpk
↔ Map<
String, dynamic> ? -
getter/setter pair
- protectedHeaderSkid ↔ String?
-
getter/setter pair
- recipients ↔ List
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tag ↔ String
-
getter/setter pair
Methods
-
decrypt(
WalletStore wallet, {Future< DidDocument> didResolver(String) = resolveDidDocument}) → Future<DidcommMessage> -
Decrypt this encrypted message using keys from
wallet
. -
decryptWithJwk(
Map< String, dynamic> privateKeyJwk, [Map<String, dynamic> ? senderPublicKeyJwk]) → DidcommMessage -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited