Home » crypto-143 » org.bouncycastle.jce.provider » [javadoc | source]
public final class: BouncyCastleProvider [javadoc | source]

All Implemented Interfaces:
    ConfigurableProvider, Map, Serializable, Cloneable

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:


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

Note: JCE algorithm names should be uppercase only so the case insensitive test for getInstance works.
Field Summary
public static  String PROVIDER_NAME     
 public BouncyCastleProvider() 
Method from org.bouncycastle.jce.provider.BouncyCastleProvider Summary:
Methods from java.security.Provider:
clear,   elements,   entrySet,   get,   getInfo,   getName,   getProperty,   getService,   getServices,   getVersion,   keySet,   keys,   load,   put,   putAll,   remove,   toString,   values
Methods from java.util.Properties:
getProperty,   getProperty,   list,   list,   load,   load,   loadFromXML,   propertyNames,   save,   setProperty,   store,   store,   storeToXML,   storeToXML,   stringPropertyNames
Methods from java.util.Hashtable:
clear,   clone,   contains,   containsKey,   containsValue,   elements,   entrySet,   equals,   get,   hashCode,   isEmpty,   keySet,   keys,   put,   putAll,   remove,   size,   toString,   values
Methods from java.util.Dictionary:
elements,   get,   isEmpty,   keys,   put,   remove,   size
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.bouncycastle.jce.provider.BouncyCastleProvider Detail:
 public  void setParameter(String parameterName,
    Object parameter)