hello method

  1. @override
Future<void> hello(
  1. String? realm,
  2. Details details
)
override

This method is called to modify the hello details for a given realm.

Implementation

@override
Future<void> hello(String? realm, Details details) {
  details.authextra ??= <String, String?>{};
  details.authextra!['pubkey'] = privateKey.publicKey.encode(
    Base16Encoder.instance,
  );
  details.authextra!['channel_binding'] = channelBinding;
  return Future.value();
}