|
Bouncy Castle Cryptography Library 1.64 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.crypto.CryptoServicesRegistrar
Basic registrar class for providing defaults for cryptography services in this module.
Nested Class Summary | |
static class |
CryptoServicesRegistrar.Property
Available properties that can be set. |
Method Summary | |
static java.lang.Object[] |
clearGlobalProperty(CryptoServicesRegistrar.Property property)
Clear the global value for the passed in property. |
static java.lang.Object[] |
clearThreadProperty(CryptoServicesRegistrar.Property property)
Clear the thread local value for the passed in property. |
static java.lang.Object |
getProperty(CryptoServicesRegistrar.Property property)
Return the default value for a particular property if one exists. |
static java.security.SecureRandom |
getSecureRandom()
Return the default source of randomness. |
static java.lang.Object[] |
getSizedProperty(CryptoServicesRegistrar.Property property)
Return an array representing the current values for a sized property such as DH_DEFAULT_PARAMS or DSA_DEFAULT_PARAMS. |
static java.lang.Object |
getSizedProperty(CryptoServicesRegistrar.Property property,
int size)
Return the value for a specific size for a sized property such as DH_DEFAULT_PARAMS or DSA_DEFAULT_PARAMS. |
static void |
setGlobalProperty(CryptoServicesRegistrar.Property property,
java.lang.Object[] propertyValue)
Set the value of the the passed in property globally in the JVM. |
static void |
setSecureRandom(java.security.SecureRandom secureRandom)
Set a default secure random to be used where none is otherwise provided. |
static void |
setThreadProperty(CryptoServicesRegistrar.Property property,
java.lang.Object[] propertyValue)
Set the value of the the passed in property on the current thread only. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.security.SecureRandom getSecureRandom()
java.lang.IllegalStateException
- if no source of randomness has been provided.public static void setSecureRandom(java.security.SecureRandom secureRandom)
secureRandom
- the SecureRandom to use as the default.public static java.lang.Object getProperty(CryptoServicesRegistrar.Property property)
property
- the property to look up.
public static java.lang.Object[] getSizedProperty(CryptoServicesRegistrar.Property property)
property
- the name of the property to look up.
public static java.lang.Object getSizedProperty(CryptoServicesRegistrar.Property property, int size)
property
- the name of the property to look up.size
- the size (in bits) of the defining value in the property type.
public static void setThreadProperty(CryptoServicesRegistrar.Property property, java.lang.Object[] propertyValue)
property
- the name of the property to set.propertyValue
- the values to assign to the property.public static void setGlobalProperty(CryptoServicesRegistrar.Property property, java.lang.Object[] propertyValue)
property
- the name of the property to set.propertyValue
- the values to assign to the property.public static java.lang.Object[] clearGlobalProperty(CryptoServicesRegistrar.Property property)
property
- the property to be cleared.
public static java.lang.Object[] clearThreadProperty(CryptoServicesRegistrar.Property property)
property
- the property to be cleared.
|
Bouncy Castle Cryptography Library 1.64 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |