public PinAuthData(string authType, string pin, SPCApiBridge spcApi) { AuthType = authType; string serverHello = spcApi.GenerateServerHello(pin); Pin = serverHello; }
public string GenerateServerHello(string pin) { if (Step == HandshakeResourceType.None) { Pin = pin; Step = HandshakeResourceType.ClientHello; return(_serverHello == null ? _serverHello = _spcApi.GenerateServerHello(pin) : _serverHello); } return(null); }