The XAdES4j library is an high-level, configurable and extensible Java implementation of XML Advanced Electronic Signatures
Questions tagged [xades4j]
132 questions
2
votes
2 answers
JAXB troubles when trying to unmarshall a BES-XADES signature document
i need your help : please, please please.
I've a Xades-signed XML document that i receive as a byteArray : so i convert my byteArray to a String.
After, i try to unmarhall so that i obtain a Java Object mapped.
The result is that i get an instance…

VRTHT
- 73
- 1
- 8
2
votes
1 answer
Detach file embaded in XAdES
Having a XAdES-BES signature with the signed content embedded inside, is it possible to detach the signed content, so that one will have the XAdES with ObjectReference instead.
So to put it simple - I need a method that takes a XAdES with embedded…

gnom1gnom
- 735
- 7
- 15
2
votes
1 answer
root namespace is added into the
library: apache Santuario + xades4j.
using xpathto select elements and sign them.
If I try to sign a simple XML without a namespace and verify the signature, it works well , but if the XML defines a namespace, for example the XML…

chris.shi
- 45
- 2
- 8
2
votes
2 answers
Can I use PKCS#11 to create a signature in a HSM?
Can I configure XAdES4J to delegate the signature creation to a hardware-security-module (HSM) using a PKCS#11 infrastructure? If yes - how?
Infos on these sites let me assume, that only a key-transfer using PKCS#11 is…

Andy
- 1,964
- 1
- 15
- 29
2
votes
1 answer
An easy way to get signing certificate from pkcs12 keystore usong alias
Can anyone tell me if there is an easy way in xades4j to get a signing certificate from a pkcs12 using his alias ?

Michele Bortolato
- 707
- 2
- 11
- 27
1
vote
0 answers
XAdES-BES signature using xades4j library for Ecuador SRI
I am trying to sign an xml invoice from my file system using xades4j library to be compliant with Ecuador's SRI (Servicio de Rentas Internas) however I have not been successful, I keep getting the following error when trying to validate the signed…

JazzDTap
- 11
- 1
1
vote
1 answer
Digitally sign XML (XAdES ) with timestamping by streaming the XML
I have created an method that digitally signs an xml (XAdES with Timestamping) using xades4j library https://github.com/luisgoncalves/xades4j
Unfortunately the xml's are quite big sometimes (1,8 GB) and I was wondering if there is a way to do that…

Mark
- 11
- 3
1
vote
2 answers
how to sign xml with xades signature
i need to sign xml file with standard xsades signature using java.
I know that i need to add extra field when generating signature:
A certificate can be considered a seal
That in the field description of the entity must have the organization…

Jacek Kaczmarek
- 103
- 10
1
vote
1 answer
Can I use ECDSA certificate to generate signature with xades4j?
I'm trying to digitally sign an xml document with xades4j, but I get an exception "UnsupportedAlgorithmException: Signature algorithm not supported by the provider (EC)"
when I use EC certificate, however the exception goes when user RSA.
Is there a…

user2769843
- 33
- 3
1
vote
2 answers
Error signing a sample XML using Xades4J: ReferenceNotInitializedException: Cannot resolve element with ID
I'm trying to sign a simple XML using Xades4J using this example, but I got this error:
Exception in thread "main" xades4j.XAdES4jXMLSigException:
Cannot resolve element with ID
at xades4j.production.SignerBES.sign(SignerBES.java:277)
at…

shark_sh
- 111
- 1
- 12
1
vote
2 answers
How to sign xml with XAdES4j, and reference URI (#DatosEmision)?
I am using this code to try to sign an xml, with a signature xades-bes:
// open file
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = null;
builder = factory.newDocumentBuilder();
Document doc1 =…

Slugs FC
- 11
- 2
1
vote
0 answers
Xades signature creation and verification end-to-end working example?
I need Xades B-T signature creation and verification in a Java project. I found DSS and xades4j projects, but I'm unable to set them up. For example with DSS creating signature is easy, but during verification I get various errors.
Even DSS's…

iirekm
- 8,890
- 5
- 36
- 46
1
vote
1 answer
is there a way to add QualifyingPropertiesReference with xades4j?
I need to add two QualifyingPropertiesReference nodes with given URI values into Object within a XadES Signature.
I'm generating an xml Signature which requires to pass a certificate via URL instead of attaching it in KeyInfo element. For this,…

Mantas Kentra
- 13
- 3
1
vote
1 answer
Resulting certificate on Signature has " " how to remove them?
I'm using xades4j to sing an xml, everything works fine.
But on the resulting XML the X509Certificate looks something like this:
MIIDUjCCAjqgAwIBAgIIYFxFM0GPYwowDQYJKoZIhvcNAQELBQAwKTEMMAoGA1UEAwwDRkVMMQww
…

José Cabrera
- 153
- 1
- 8
1
vote
2 answers
Using xades4j for signature UBL2.1 Invoice
I try to use xades4j library for digital signature of UBL2.1 Invoice.
UBL define xpath transformation as:
count(ancestor-or-self::sig:UBLDocumentSignatures | here()/ancestor::sig:UBLDocumentSignatures[1]) >…

Josip V.
- 31
- 6