Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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;
        }