AlgorithmNegotiation class
Default implementation of algorithm negotiation
- Implemented types
- Annotations
-
- @includeInBarrelFile
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createHandshakeMessage(
CryptoPeerCapabilities capabilities) → Map< String, dynamic> -
Creates a handshake message containing this peer's capabilities.
override
-
negotiateAlgorithms(
CryptoPeerCapabilities local, CryptoPeerCapabilities remote, {bool isInitiator = true}) → NegotiationResult? -
Negotiates algorithms based on local and remote capabilities.
Returns null if no compatible algorithms are found.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseHandshakeMessage(
Map< String, dynamic> message) → CryptoPeerCapabilities -
Parses a handshake message from the remote peer.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
validateNegotiation(
NegotiationResult negotiation) → bool -
Validates that the negotiated algorithms are supported and secure.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited