Package de.sfuhrm.openssl4j


package de.sfuhrm.openssl4j
Binding classes from the Java JCA providers. The native OpenSSL library is being linked dynamically into the JVMs address space.

Usage

There are multiple ways of using the library.

Runtime configuration

You can create an instance of a message digest as follows if you are explicitly specifying the crypto provider OpenSSL4JProvider: MessageDigest md5 = new MessageDigest("MD5", new OpenSSL4JProvider());

JDK-wide configuration

You can specify the OpenSSL4JProvider to be used JDK-wide implicitly by the by changing your
  • Linux, or macOS: `<java-home>/conf/security/java.security
  • Windows: `<java-home>\conf\security\java.security
to have the OpenSSL4J provider in the first place: security.provider.1=OpenSSL4J security.provider.2=SUN security.provider.3=SunRsaSign security.provider.4=SunEC security.provider.5=SunJSSE security.provider.6=SunJCE security.provider.7=SunJGSS security.provider.8=SunSASL security.provider.9=XMLDSig security.provider.10=SunPCSC