EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Applet JNI :

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#36081
Posted: 03/01/2016 05:15:48
by Yann Fontaine (SUPPORT DISABLED)
Joined: 02/01/2016
Posts: 39

Hi,

i try to run the applet in a webpage (before, i ran it as an applet in Eclipse, and worked well), and get the following error :

security: Valider la chaîne de certificats à laide de lAPI CertPath
java.lang.UnsatisfiedLinkError: no sbbjni32 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at SecureBlackbox.Base.JNI$1.run(JNI.java:1665)
at java.security.AccessController.doPrivileged(Native Method)
at SecureBlackbox.Base.JNI.initialize(JNI.java:1658)
at com.rvr.sign.PDFSignAndUploadApplet.initSBB(PDFSignAndUploadApplet.java:126)

HEre are the jar that i added to the archive :
<APPLET code="com.rvr.sign.PDFSignAndUploadApplet.class"
archive="applets/sdigitalsignature.jar,applets/SecureBlackbox.Base-14.0.287.jar,applets/SecureBlackbox.PDF-14.0.287.jar,applets/SecureBlackbox.PKI.jar" width=800 height=400>
Applet not displayed
</APPLET>

i don't know how to run it... I hope there is nothing to install on the client computer !
What's wrong with my applet (signed one) ? did i miss a jar file ?

Thanks for your quick support

Yann
#36082
Posted: 03/01/2016 05:30:05
by Vsevolod Ievgiienko (EldoS Corp.)

Hello.

SecureBlackbox.Base.JNI.initialize method tries to load JNI module that is not deployed with your applet. This module is needed only if you use TElWinCertStorage or PKCS#11 functionality. Otherwise you can simply remove JNI.initialize line from your code.
#36083
Posted: 03/01/2016 05:36:13
by Yann Fontaine (SUPPORT DISABLED)
Joined: 02/01/2016
Posts: 39

Hello

But your API use it to load Certificates from Windows and token ?
No ?
Actually, i use a based example (TinySignerPKCS11) that uses TElWinCertStorage
Do i need to replace this by other Storage ?
Or do i need to retrieve manually and try to convert to TElX509Certificate ?
#36084
Posted: 03/01/2016 05:44:00
by Vsevolod Ievgiienko (EldoS Corp.)

Quote
But your API use it to load Certificates from Windows and token ?

If you need this functionality then JNI module should be deployed to clients machine with your applet.

Quote
Or do i need to retrieve manually and try to convert to TElX509Certificate ?

If you do not want to use JNI modules you can retrieve certificates using built-in JDK functionality and convert them to TElX509Certificate to use with our API.

Also you can use TElJavaCertStorage to access certificates in Windows stores without JNI module.
#36109
Posted: 03/01/2016 08:48:21
by Yann Fontaine (SUPPORT DISABLED)
Joined: 02/01/2016
Posts: 39

Ok, i removed JNI and used TElJavaCertStorage (or JDK native library) to retrieve Certificates
Thanks for your help

Yann
Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.

Reply

Statistics

Topic viewed 1708 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!