InvitationKey class

An invitation's content key: AES-256-GCM, minted when the invitation is created and released to the invitee only once they have accepted.

Annotations
  • @experimental

Constructors

InvitationKey.fromBase64(String key)
The key as it travels in a InvitationConnection.
factory
InvitationKey.mint()
Mints a fresh random key.
factory

Properties

base64 → String
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open(SealedInvitationContent content, {required String inviter, required String invitationId}) → Future<String>
Decrypts content, refusing content bound to any other invitation.
seal(String plaintext, {required String inviter, required String invitationId}) → Future<SealedInvitationContent>
Encrypts plaintext, bound to the invitation it belongs to.
toString() → String
A string representation of this object.
inherited

Operators

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