private static bool DefaultSignatureFormatValidator(SignedXml signedXml) { if (signedXml.DoesSignatureUseTruncatedHmac()) { return(false); } return(true); }
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; }
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; }