Beispiel #1
0
        protected XElement SignData(ebics.UserSignatureDataSigBookType sd, byte[] data, SignKeyPair kp)
        {
            var sig = SignData(data, kp);
            var s   = sd.Items.OfType <ebics.OrderSignatureDataType>().Last();

            s.SignatureValue   = sig;
            s.SignatureVersion = kp.Version.ToString();
            var doc = SerializeToDocument(sd);

            return(doc.Elements().First());
        }
Beispiel #2
0
        protected XElement SignData(XDocument doc, UserParams up)
        {
            var xmlStr = FormatXml(doc);

            var userSigData = new ebics.UserSignatureDataSigBookType
            {
                Items = new object[] {
                    new ebics.OrderSignatureDataType
                    {
                        PartnerID = Config.User.PartnerId,
                        UserID    = Config.User.UserId,
                    }
                }
            };

            return(SignData(userSigData, Encoding.UTF8.GetBytes(xmlStr), Config.User.SignKeys));
        }