Example #1
0
        //身份验证↓

        private Reasons VerifyRequest(HttpRequest r, X509Certificate2 c)
        {
            string signature = null;
            long   timeStamp;

            if (!VerificationHelper.GetHeaders(r, out signature, out timeStamp))
            {
                return(Reasons.HeaderMissing);
            }

            return(VerificationHelper.VerifyRequest(ReadyForVerify(r.QueryString, timeStamp), signature, timeStamp,
                                                    ConfigLoadingManager.GetInstance().GetConfig().MaxAllowedStampDifference, c));
        }