EldoS | Feel safer!

Software components for data protection, secure storage and transfer

XAdES-X-L in Java

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
Posted: 01/31/2013 09:56:37
by Dušan Nikolić (Standard support level)
Joined: 01/31/2013
Posts: 1

how to sign xml file with XAdES-X-L standard in Java. Documentation is very poor and there is no sample for XAdES-X-L signature in Java samples archive.
Posted: 01/31/2013 10:52:05
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

Sorry, but both documentation and samples are not as full as for other SecureBlackbox editions. We are working on this.

As all SecureBlackbox editions are compiled from the same source code you can use existing documentation. The main difference is that in Java you should use getters/setters instead of VCL/.NET properties (e.g. TElXMLSigner.GetSignature() instead of TElXMLSigner.Signature described in the docs).

For now you can use AdvancedSigner example for VCL or .NET edition as a reference. It allows to generate XAdES-X-L signatures. The major part of code will be the same with minor Java-related differences. The sample is located in \EldoS\SecureBlackbox.<edition>\Samples\<language>\XMLBlackbox\AdvancedSigner folder.
Posted: 01/31/2013 12:19:18
by Dmytro Bogatskyy (EldoS Corp.)

The simplest way to create XAdES-X-L siganture, is to replace XAdESSigner.Generate() method call in SimpleSigner java sample with code:
XAdESSigner.SetOnBeforeCertificateValidate(new TSBXAdESBeforeCertificateValidateEvent(onBeforeCertificateValidateEvent));


   TSBXAdESBeforeCertificateValidateEvent.Callback onBeforeCertificateValidateEvent = new TSBXAdESBeforeCertificateValidateEvent.Callback() {
         public void TSBXAdESBeforeCertificateValidateEventCallback(TObject sender,
               TElX509Certificate Cert, TElX509CertificateValidator CertValidator) {
            // CertValidator object used to collect certificates and revocation info
            // for example you can add additional certificates to CertValidator

and let a component to automatically retrieve certificates and revocation info.



Topic viewed 1201 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!