示例#1
0
        public PinAuthData(string authType, string pin, SPCApiBridge spcApi)
        {
            AuthType = authType;
            string serverHello = spcApi.GenerateServerHello(pin);

            Pin = serverHello;
        }
示例#2
0
        public string GenerateServerHello(string pin)
        {
            if (Step == HandshakeResourceType.None)
            {
                Pin  = pin;
                Step = HandshakeResourceType.ClientHello;
                return(_serverHello == null ? _serverHello = _spcApi.GenerateServerHello(pin) : _serverHello);
            }

            return(null);
        }