private XAdESSignedXml SetSignedDataObjectProperties(SignedPropertiesType signedProperties) { var transformReference = this.SetSignatureTransformReference(); signedProperties.SignedDataObjectProperties = new SignedDataObjectPropertiesType { DataObjectFormat = new DataObjectFormatType[] { new DataObjectFormatType { Description = "Description" , MimeType = "text/xml" , ObjectReference = "#" + transformReference.Id } } }; return this; }
private XAdESSignedXml SetSignedPropertiesReference(SignedPropertiesType signedProperties) { var reference = new Reference { Id = XsdSchemas.FormatId("SignedPropertiesID") , Uri = String.Format("#{0}", signedProperties.Id) , Type = "http://uri.etsi.org/01903#SignedProperties" }; this.AddReference(reference); return this; }