Installation
Project Import
Reference the official Java Maven package from HSM DINAMO in your project.
Manual installation
This form of installation is most commonly used for third-party applications where you don't have access to the source code.
-
Download the file
jar
of Java package of HSMclick on Versions and then Browse. In the list download the file which is usually named as followsdinamo-hsm-M.N.P.jar
whereM.N.P
is the version. -
Copy the file to JDK.
Copy the file
dinamo-hsm-M.N.P.jar
folder<JAVA_HOME>\jre\lib\ext
.E.g:
C:\Program Files\Java\jdk1.8.0_211\jre\lib\ext
Make the file accessible in the java classpath.
Ex. with option
-cp
:java -cp "dinamo-hsm-4.14.0.jar" -jar app.jar
-
Include the JCA class DINAMO in the JVM's list of encryption providers. This can be done in various ways, for example:
-
Via application-specific parameters.
E.g:
jarsigner ... -providerClass br.com.trueaccess.provider.netdfence.ND
. -
Inclusion in the configuration file
<JAVA_HOME>\jre\lib\security\java.security
the reference for the HSMsecurity.provider.X=br.com.trueaccess.provider.netdfence.ND
where X should be replaced by the position of the CSP in the CSP ranking list.Example:
. . . # # List of providers and their preference orders (see above): # security.provider.1=sun.security.provider.Sun security.provider.2=com.sun.net.ssl.internal.ssl.Provider security.provider.3=com.sun.rsajca.Provider security.provider.4=com.sun.crypto.provider.SunJCE security.provider.5=sun.security.jgss.SunProvider security.provider.6=br.com.trueaccess.provider.netdfence.ND . . .
-
Via application-specific parameters.
E.g:
jarsigner ... -providerClass br.com.trueaccess.provider.netdfence.ND
.
-