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

            return(signedProperties.SignedSignatureProperties);
        }