/// <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; }
public virtual IXmlSigner GetSigner( SignatureLocation signatureLocation = SignatureLocation.Enveloped) { throw new NotImplementedException(); }
#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
public override IXmlSigner GetSigner(SignatureLocation signatureLocation = SignatureLocation.Enveloped) => new RsaXmlSigner(CertificateFactory.GetSigningCertificate()) { SignatureLocation = signatureLocation };