respond method

  1. @override
Future<Uint8List> respond(
  1. Uint8List challenge
)
override

Responds to the authentication challenge.

Implementation

@override
Future<Uint8List> respond(Uint8List challenge) async {
  final build = BytesBuilder(copy: false);
  build.addByte(0);
  build.add(utf8.encode(username));
  build.addByte(0);
  build.add(utf8.encode(password));
  return castBytes(build.toBytes());
}