public final class

BouncyCastleProvider

extends Provider
implements ConfigurableProvider
java.lang.Object
   ↳ java.util.Dictionary<K, V>
     ↳ java.util.Hashtable<K, V>
       ↳ java.util.Properties
         ↳ java.security.Provider
           ↳ org.bouncycastle.jce.provider.BouncyCastleProvider

Class Overview

To add the provider at runtime use:

 import java.security.Security;
 import org.bouncycastle.jce.provider.BouncyCastleProvider;

 Security.addProvider(new BouncyCastleProvider());
 
The provider can also be configured as part of your environment via static registration by adding an entry to the java.security properties file (found in $JAVA_HOME/jre/lib/security/java.security, where $JAVA_HOME is the location of your JDK/JRE distribution). You'll find detailed instructions in the file but basically it comes down to adding a line:
 
    security.provider.<n>=org.bouncycastle.jce.provider.BouncyCastleProvider
 
 
Where <n> is the preference you want the provider at (1 being the most preferred).

Note: JCE algorithm names should be upper-case only so the case insensitive test for getInstance works.

Summary

[Expand]
Inherited Constants
From interface org.bouncycastle.jce.interfaces.ConfigurableProvider
Fields
public static String PROVIDER_NAME
[Expand]
Inherited Fields
From class java.util.Properties
Public Constructors
BouncyCastleProvider()
Construct a new provider.
Public Methods
void setParameter(String parameterName, Object parameter)
[Expand]
Inherited Methods
From class java.security.Provider
From class java.util.Properties
From class java.util.Hashtable
From class java.util.Dictionary
From class java.lang.Object
From interface java.util.Map
From interface org.bouncycastle.jce.interfaces.ConfigurableProvider

Fields

public static String PROVIDER_NAME

Public Constructors

public BouncyCastleProvider ()

Construct a new provider. This should only be required when using runtime registration of the provider using the Security.addProvider() mechanism.

Public Methods

public void setParameter (String parameterName, Object parameter)