Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
0
        public static SignedSignaturePropertiesType CreateSignedSignatureProperties(this SignedPropertiesType signedProperties)
        {
            signedProperties.SignedSignatureProperties = new SignedSignaturePropertiesType();

            return(signedProperties.SignedSignatureProperties);
        }