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); }
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); }
public static SignedSignaturePropertiesType CreateSignedSignatureProperties(this SignedPropertiesType signedProperties) { signedProperties.SignedSignatureProperties = new SignedSignaturePropertiesType(); return(signedProperties.SignedSignatureProperties); }