private static bool DefaultSignatureFormatValidator(SignedXml signedXml)
 {
     if (signedXml.DoesSignatureUseTruncatedHmac())
     {
         return(false);
     }
     return(true);
 }
示例#2
0
        private static bool DefaultSignatureFormatValidator(SignedXml signedXml)
        {
            // Reject the signature if it uses a truncated HMAC
            if (signedXml.DoesSignatureUseTruncatedHmac())
            {
                return(false);
            }

            // Reject the signature if it uses a canonicalization algorithm other than
            // one of the ones explicitly allowed
            if (!signedXml.DoesSignatureUseSafeCanonicalizationMethod())
            {
                return(false);
            }

            // Otherwise accept it
            return(true);
        }
 private static bool DefaultSignatureFormatValidator(SignedXml signedXml)
 {
     if (signedXml.DoesSignatureUseTruncatedHmac())
     {
         return false;
     }
     return true;
 }
示例#4
0
文件: signedxml.cs 项目: mind0n/hive
        private static bool DefaultSignatureFormatValidator(SignedXml signedXml) {
            // Reject the signature if it uses a truncated HMAC
            if (signedXml.DoesSignatureUseTruncatedHmac()) {
                return false;
            }

            // Reject the signature if it uses a canonicalization algorithm other than
            // one of the ones explicitly allowed
            if (!signedXml.DoesSignatureUseSafeCanonicalizationMethod()) {
                return false;
            }

            // Otherwise accept it
            return true;
        }