java.lang.Object
org.bouncycastle.crypto.CryptoServicesRegistrar
Registry for cryptographic services and utilities. Provides secure random source and constraint checking functionality.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final SecureRandomThe secure random used when none is configured.Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionstatic voidCheck a service's algorithm strength and key size constraints.static SecureRandomgetSecureRandom(SecureRandom secureRandom) Return the default source of randomness.
Field Details
sr
The secure random used when none is configured.
Constructor Details
CryptoServicesRegistrar
public CryptoServicesRegistrar()Creates an instance, all useful members are static.
Method Details
checkConstraints
Check a service's algorithm strength and key size constraints.- Parameters:
csp- the service properties
getSecureRandom
Return the default source of randomness.- Parameters:
secureRandom- the secure random to check- Returns:
- the default SecureRandom