private bool CheckSignatureFormat() { if (this.m_signatureFormatValidator == null) { return(true); } SignedXmlDebugLog.LogBeginCheckSignatureFormat(this, this.m_signatureFormatValidator); bool result = this.m_signatureFormatValidator(this); SignedXmlDebugLog.LogFormatValidationResult(this, result); return(result); }
// If we have a signature format validation callback, check to see if this signature's format (not // the signautre itself) is valid according to the validator. A return value of true indicates that // the signature format is acceptable, false means that the format is not valid. private bool CheckSignatureFormat() { if (_signatureFormatValidator == null) { // No format validator means that we default to accepting the signature. (This is // effectively compatibility mode with v3.5). return(true); } SignedXmlDebugLog.LogBeginCheckSignatureFormat(this, _signatureFormatValidator); bool formatValid = _signatureFormatValidator(this); SignedXmlDebugLog.LogFormatValidationResult(this, formatValid); return(formatValid); }