The XAdES4j library is an high-level, configurable and extensible Java implementation of XML Advanced Electronic Signatures
Questions tagged [xades4j]
132 questions
1
vote
1 answer
Xades4j Verify signature Xades - EPES: Bad XML signature
I am using Xades4J to develop a simple Java program that signs and verifies an XML with XADES-EPES. The sign process seems to be working properly and generates a valid signed XML (although we don't need the SignaturePolicyIdentifier section on…

Miguel Febres
- 2,153
- 2
- 21
- 31
1
vote
1 answer
signing with xades4j library
Is there any working example of how to sign using xades4j library? Here's what I want to do:
Create an XML document
Convert some binary data (PDF or DOC file) to base64
Put converted data to the recently created XML document
Sign the XML document…

Big Sam
- 29
- 8
1
vote
1 answer
How to sign KeyInfo properties XAdES4j?
I am using the test code included in the XAdES4j package, I am doing a basic enveloped signature that includes the element, but the code uses the KeyingDataProvider Object that doesn't allow me to set an ID, so when I create the…

sgelves
- 134
- 1
- 12
1
vote
0 answers
xades4j Error: TimeStampDigestMismatchException: Verification failed for property 'SignatureTimeStamp'
I am trying to use xades4j library in a Java Web Service which verifies the XADES signature.
This web service works properly when the file and the timestamp uses the same digest algorithm, SHA-512. However, when the file uses SHA-512, and the…

Jorge González
- 11
- 3
1
vote
1 answer
Signing with XAdeS-BES in Android
I am trying to sign a file with XADES-BES in Android. I have found a library about that. Building and creating APK works fine. After I choose the file and click on the Sign button, it gives an runtime error. After debugging I found that there is a…

Sefa Katirci
- 41
- 1
- 6
1
vote
1 answer
Verify detached XAdES signature on file
I am trying to verify integrity of a file "test.zip" using detached XAdES signature "test.zip.xades" using xades4j library. I am aware that easier way would be using md5, but I need to use XAdES. I don't want to verify CA chain etc, just verify…

punkracy
- 11
- 1
1
vote
1 answer
XAdES internally detached signature
I want to create a file that contains multiple independent signatures referencing the same data. I want the data to be stored in the output XML file, as a sibling to ds:Signature elements, like below (only with multiple ds:Signature elements):

bmscicho
- 139
- 2
- 11
1
vote
1 answer
Elliptic keyValueType ECDSAKeyValue
We use Xades4j to validate signatures in xml files. This validation now fails because signatures contain a ecdsa:ECDSAKeyValue element
…

Cor Broekhuis
- 11
- 1
1
vote
2 answers
xades4j: Sign only one element
I'm using this code to sign a xml document:
Document doc = getDocument(xml_to_sign);
Element elemToSign = doc.getDocumentElement();
String file_uri_path = elemToSign.getBaseURI();
DataObjectDesc obj1 = new…

Jure1873
- 879
- 1
- 7
- 8
1
vote
1 answer
xades4j sugestions for changes
I have a list of suggestion for xades4j. These are minor changes in the xades4j usability.
Class DefaultTimeStampTokenProvider
It should be possible to override the method getHttpConnection().
This is my opinion, but today in many enterprises the…

brun0sa
- 104
- 7
1
vote
1 answer
Bad production of 2.5.4.5 oid into X509IssuerName, change proposal
I noticed that durnig a xades signature with xades4j the element X509IssuerName presents a bad formatted serialnumber issuer value, it shows a PrintableString Hex encoded, i search into xades4j code and i found that the problem is into the…

Michele Bortolato
- 707
- 2
- 11
- 27
1
vote
2 answers
Xades4j produces an invalid signature with signSigningCertificate set to true and DataObjectFormatProperty
I have my basic signature options class:
public class MyDefaultBasicSignatureOptionsProvider implements BasicSignatureOptionsProvider {
(...)
@Override
public boolean signSigningCertificate() {
return true;
}
}
And my…

brun0sa
- 104
- 7
1
vote
1 answer
xades4j: how to produce an signature with a transform in the signedproperties reference
I received an example xades signature that I have to reproduce using xades4j ("like a template").
The example signature is this (an excerpt):
…

brun0sa
- 104
- 7
1
vote
1 answer
Error using XAdES4j to produce a detached signature with a xpath transform
I'm using the xades4j for produce xades signatures.
I want to include a xpath transform in a reference. My problem is the fact that it is a detached signature and the xpath has namespaces...
I tried with the following xml (an excerpt):

brun0sa
- 104
- 7
1
vote
1 answer
Xades4j - XML Signature Verification error - SignaturePolicyNotAvailableException
I receive XML Invoice with Xades EPES signature and I have to control it.
So I try to do that with Xades4j. I have fixed lot of error But I stuck on the error:
errxades4j.verification.SignaturePolicyNotAvailableException: Verification failed for…

David
- 13
- 3