processHandshake method

  1. @override
void processHandshake(
  1. Device device,
  2. NearbyMessage message
)
override

Implementation

@override
void processHandshake(Device device, NearbyMessage message) {
  // In experimental mode, this handshake received message contains the public key
  // of the peer device that is connecting
  var verifier = SigningManager.initializeFromJwk(
      Jwk.fromUtf8(message.message).toJson());
  device.addVerifier(verifier);
  device.setAuthManager(this);
  device.setIsAuthenticated(true);
}