Bouncy Castle Cryptography 1.11 API Specification: Class BouncyCastleProvider
Bouncy Castle Cryptography 1.11

Class BouncyCastleProvider

All Implemented Interfaces:
java.lang.Cloneable, java.util.Map,

public final class BouncyCastleProvider

To add the provider at runtime use:

 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 properties file (found in $JAVA_HOME/jre/lib/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:

Where <n> is the preference you want the provider at (1 being the most prefered).

Note: JCE algoritms names should be uppercase only so the case insensitive test for getInstance works.

See Also:
Serialized Form

Inner classes inherited from class java.util.Map
Field Summary
static java.lang.String PROVIDER_NAME
Fields inherited from class java.util.Properties
Constructor Summary
          Construct a new provider.
Methods inherited from class
clear, entrySet, getInfo, getName, getVersion, keySet, load, put, putAll, remove, toString, values
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, propertyNames, save, setProperty, store
Methods inherited from class java.util.Hashtable
clone, contains, containsKey, containsValue, elements, equals, get, hashCode, isEmpty, keys, rehash, size
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait

Field Detail


public static java.lang.String PROVIDER_NAME
Constructor Detail


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

Bouncy Castle Cryptography 1.11