authenticate method

Future<void> authenticate(
  1. SecureSocket socket
)

Implementation

Future<void> authenticate(SecureSocket socket) async {
  await SocketManager.write(socket, data: "EHLO localhost");
  await SocketManager.write(socket, data: "AUTH LOGIN");
  await SocketManager.write(socket, data: CredentialEncoder.encode(username));
  await SocketManager.write(socket, data: CredentialEncoder.encode(password));
}