org.bouncycastle.jce.provider
public final class BouncyCastleProvider extends java.security.Provider implements ConfigurableProvider
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.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROVIDER_NAME |
EC_IMPLICITLY_CA, THREAD_LOCAL_EC_IMPLICITLY_CA
Constructor and Description |
---|
BouncyCastleProvider()
Construct a new provider.
|
Modifier and Type | Method and Description |
---|---|
void |
setParameter(java.lang.String parameterName,
java.lang.Object parameter) |
clear, elements, entrySet, get, getInfo, getName, getProperty, getService, getServices, getVersion, keys, keySet, load, put, putAll, putService, remove, removeService, toString, values
getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
public BouncyCastleProvider()
Security.addProvider()
mechanism.public void setParameter(java.lang.String parameterName, java.lang.Object parameter)
setParameter
in interface ConfigurableProvider