Skip to content

Commit

Permalink
Import DigestAlgorithm from signxml in XAdES example (#212)
Browse files Browse the repository at this point in the history
The documentation imports DigestAlgorithm from `signxml.xades` but the
digest algorithm is not exposed there.
So better to improve the documentation to import the algorithm from the
right path.
  • Loading branch information
Sergi Almacellas Abellana authored Nov 14, 2022
1 parent ea42f8a commit 9794814
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,9 @@ SignXML supports signing and verifying documents using `XAdES <https://en.wikipe

.. code-block:: python
from signxml import DigestAlgorithm
from signxml.xades import (XAdESSigner, XAdESVerifier, XAdESVerifyResult,
XAdESSignaturePolicy, XAdESDataObjectFormat, DigestAlgorithm)
XAdESSignaturePolicy, XAdESDataObjectFormat)
signature_policy = XAdESSignaturePolicy(
Identifier="MyPolicyIdentifier",
Description="Hello XAdES",
Expand Down

0 comments on commit 9794814

Please sign in to comment.