/// <summary>
        /// Validate signature from plain object
        /// </summary>
        /// <param name="signature">Signature</param>
        /// <param name="privateKey">Private key</param>
        /// <param name="data">Object</param>
        /// <returns></returns>
        public static bool ValidateSignatureFromObject(this string signature, string privateKey, object data, HashType hashType = HashType.SHA256)
        {
            string ignoredField = null;

            return(SignatureUtility.ValidateSignatureFromObject(signature, privateKey, data, ignoredField, hashType));
        }
Exemple #2
0
        /// <summary>
        /// Validate signature from plain object
        /// </summary>
        /// <param name="signature">Signature</param>
        /// <param name="privateKey">Private key</param>
        /// <param name="data">Object</param>
        /// <returns></returns>
        public static bool ValidateSignatureFromObject(string signature, string privateKey, object data)
        {
            string ignoredField = null;

            return(SignatureUtility.ValidateSignatureFromObject(signature, privateKey, data, ignoredField));
        }
 /// <summary>
 /// Validate signature from plain object
 /// </summary>
 /// <param name="signature">Signature</param>
 /// <param name="privateKey">Private key</param>
 /// <param name="data">Object</param>
 /// <param name="ignoreField">Ignore a properties</param>
 /// <returns></returns>
 public static bool ValidateSignatureFromObject(this string signature, string privateKey, object data, string ignoreFields, HashType hashType = HashType.SHA256)
 {
     return(SignatureUtility.ValidateSignatureFromObject(signature, privateKey, data, SignatureUtility.GenerateIgnoreFields(ignoreFields), hashType));
 }
Exemple #4
0
 /// <summary>
 /// Validate signature from plain object
 /// </summary>
 /// <param name="signature">Signature</param>
 /// <param name="privateKey">Private key</param>
 /// <param name="data">Object</param>
 /// <param name="ignoreField">Ignore a properties</param>
 /// <returns></returns>
 public static bool ValidateSignatureFromObject(string signature, string privateKey, object data, string ignoreFields)
 {
     return(SignatureUtility.ValidateSignatureFromObject(signature, privateKey, data, SignatureUtility.GenerateIgnoreFields(ignoreFields)));
 }