SessionKeys class sealed
A pair of session keys that can be used for secure data transfer.
This class simply holds a rx
Key and a tx
Key. The rx
should be used to
decrypt received data and tx
to encrypt data before sending it.
- Annotations
-
- @freezed
Constructors
- SessionKeys({required SecureKey rx, required SecureKey tx})
-
Default Constructor
constfactory
Properties
-
copyWith
→ $SessionKeysCopyWith<
SessionKeys> -
Create a copy of SessionKeys
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- rx → SecureKey
-
Session key to be used to decrypt received data
no setterinherited
- tx → SecureKey
-
Session key to be used to encrypt data before transmitting it
no setterinherited
Methods
-
dispose(
) → void - Shortcut to dispose both contained keys.
-
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