Braintree.WebhookNotificationGateway.Verify C# (CSharp) Метод

Verify() публичный Метод

public Verify ( string challenge ) : string
challenge string
Результат string
        public virtual string Verify(string challenge)
        {
            var match = Regex.Match (challenge, @"^[a-f0-9]{20,32}$");
            if (!match.Success)
            {
                throw new InvalidChallengeException ("challenge contains non-hex characters");
            }
            string digest = new Sha1Hasher().HmacHash(service.PrivateKey, challenge);
            return string.Format("{0}|{1}", service.PublicKey, digest.ToLower());
        }