|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| 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 void |
checkConstraints(CryptoServiceProperties cryptoService)
Check a service to make sure it meets the current constraints. |
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.security.SecureRandom |
getSecureRandom(java.security.SecureRandom secureRandom)
Return either the passed-in SecureRandom, or if it is null, then the default source of randomness. |
static CryptoServicesConstraints |
getServicesConstraints()
Return the current algorithm/services constraints. |
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 |
setSecureRandomProvider(SecureRandomProvider secureRandomProvider)
Set a default secure random provider to be used where none is otherwise provided. |
static void |
setServicesConstraints(CryptoServicesConstraints constraints)
Set the current algorithm constraints. |
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()
public static java.security.SecureRandom getSecureRandom(java.security.SecureRandom secureRandom)
secureRandom - the SecureRandom to use if it is not null.
public static void setSecureRandom(java.security.SecureRandom secureRandom)
secureRandom - the SecureRandom to use as the default.public static void setSecureRandomProvider(SecureRandomProvider secureRandomProvider)
secureRandomProvider - a provider SecureRandom to use when a default SecureRandom is requested.public static CryptoServicesConstraints getServicesConstraints()
public static void checkConstraints(CryptoServiceProperties cryptoService)
cryptoService - the service to be checked.
CryptoServiceConstraintsException - if the service violates the current constraints.public static void setServicesConstraints(CryptoServicesConstraints constraints)
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.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||