private bool CheckHashDataInfosOfRefsOnlyTimeStamp(TimeStamp timeStamp)
{
UnsignedSignatureProperties unsignedSignatureProperties;
bool completeCertificateRefsHashDataInfoFound;
bool completeRevocationRefsHashDataInfoFound;
bool retVal;
completeCertificateRefsHashDataInfoFound = false;
completeRevocationRefsHashDataInfoFound = false;
retVal = true;
unsignedSignatureProperties = this.XadesObject.QualifyingProperties.UnsignedProperties.UnsignedSignatureProperties;
foreach (HashDataInfo hashDataInfo in timeStamp.HashDataInfoCollection)
{
if (hashDataInfo.UriAttribute == "#" + unsignedSignatureProperties.CompleteCertificateRefs.Id)
{
completeCertificateRefsHashDataInfoFound = true;
}
if (hashDataInfo.UriAttribute == "#" + unsignedSignatureProperties.CompleteRevocationRefs.Id)
{
completeRevocationRefsHashDataInfoFound = true;
}
}
retVal = completeCertificateRefsHashDataInfoFound && completeRevocationRefsHashDataInfoFound;
return retVal;
}