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
jar
file for the HSM Java package, click 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.
Copiar o arquivo
dinamo-hsm-M.N.P.jar
para a pasta<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.
E.g. with the
-cp
option: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
. -
Inclusão no arquivo de configuração
<JAVA_HOME>\jre\lib\security\java.security
a referência para a CSP Java do HSMsecurity.provider.X=br.com.trueaccess.provider.netdfence.ND
onde X deve ser substituído pela posição da CSP na lista de ordenamento de CSPs.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
.
-