completeSession method

  1. @override
Future<SecureSession> completeSession()
override

Completes the session establishment process. Called by the responder after sending the response.

Implementation

@override
Future<SecureSession> completeSession() async {
  if (_negotiationResult == null || _sharedSecret == null) {
    throw StateError('Session not properly negotiated');
  }

  return _createSecureSession();
}