Home » crypto-143 » org.bouncycastle.jce.provider » [javadoc | source]
org.bouncycastle.jce.provider
public final class: BouncyCastleProvider [javadoc | source]
java.lang.Object
   java.util.Dictionary
      java.util.Hashtable
         java.util.Properties
            java.security.Provider
               org.bouncycastle.jce.provider.BouncyCastleProvider

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:

security.provider.<n>=org.bouncycastle.jce.provider.BouncyCastleProvider

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     
Constructor:
 public BouncyCastleProvider() 
Method from org.bouncycastle.jce.provider.BouncyCastleProvider Summary:
setParameter
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)