Пример #1
0
 /// <summary>
 /// Build signature location
 /// </summary>
 /// <param name="page"></param>
 /// <param name="x"></param>
 /// <param name="y"></param>
 /// <param name="width"></param>
 /// <param name="height"></param>
 /// <param name="layout"></param>
 /// <returns></returns>
 private SignatureLocation BuildSignatureLocation(int page, int x, int y, int width, int height)
 {
     SignatureLocation signatureLocation = new SignatureLocation()
     {
         page = page,
         x = x,
         y = y,
         width = width,
         height = height                
     };
     
     return signatureLocation;
 }
Пример #2
0
 public virtual IXmlSigner GetSigner(
     SignatureLocation signatureLocation = SignatureLocation.Enveloped)
 {
     throw new NotImplementedException();
 }
Пример #3
0
#pragma warning disable CS0618 // Type or member is obsolete
        public override IXmlSigner GetSigner(SignatureLocation signatureLocation = SignatureLocation.Enveloped) => new RsaXmlSigner(CertificateFactory.GetSigningSha256Certificate(), Algorithms.Hash.Sha1)
        {
            SignatureLocation = signatureLocation
        };                     // SHA1 also works with this cert
Пример #4
0
 public override IXmlSigner GetSigner(SignatureLocation signatureLocation = SignatureLocation.Enveloped) => new RsaXmlSigner(CertificateFactory.GetSigningCertificate())
 {
     SignatureLocation = signatureLocation
 };