Skip to content

A XAdES signer library for Xamarin Android, iOS and Windows

License

Notifications You must be signed in to change notification settings

silegis-mg/XAdES-Signer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.NET XAdES Library

This .NET library generates signed XML files that adheres to the XAdES standard on Windows, Xamarin Android and iOS.

This is still a work in progress. Right now only enveloped XAdES-BES signatures are supported.

Usage

Just call the method Sign from a XAdESSigner instance providing an stream with the input XML, an output stream, a XPath selector to the element that should be signed, a Bouncycastle's X509Certificate instance and private AsymmetricKeyParameter instance.

This library can be called from PCL and Xamarin.Forms projects through the factory XAdESCrossPlatformSigner.

IXAdESSigner xmlSigner = XAdESCrossPlatformSigner.Current;
xmlSigner.Sign(xmlStream, signedXmlStream, "#root", x509certificate, privateKey);

To-Do

  • Add support to signature policies (XAdES-EPES);
  • Signature validation;
  • Unit tests.

About

A XAdES signer library for Xamarin Android, iOS and Windows

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages