Installing additional providers

Install providers programmatically or using the java.security configuration that comes with the JRE.

Install providers programmatically or using the java.security configuration that comes with the JRE.
Tip: For more detailed instructions, see How to implement a Provider (Oracle).

Procedure

  • Programatically - Add a new Providers to the java.security.Security class:
    Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
    
  • Configuration file - Add the location to the java.security configuration file:
    security.provider.10=sun.security.pkcs11.SunPKCS11 /etc/softhsm/pkcs11.cfg
    Tip: The configuration file is located at java_home/lib/security/java.security.