public class SecureRandomParameters extends JsseParameters
Modifier and Type | Field and Description |
---|---|
protected String |
algorithm
The Random Number Generator algorithm identifier for the
SecureRandom factory method used to create the
SecureRandom represented by this object's configuration. |
protected String |
provider
The optional provider identifier for the
SecureRandom factory
method used to create the SecureRandom represented by this
object's configuration. |
Constructor and Description |
---|
SecureRandomParameters() |
Modifier and Type | Method and Description |
---|---|
SecureRandom |
createSecureRandom()
Returns a
SecureRandom instance initialized using the configured
algorithm and provider, if specified. |
String |
getAlgorithm() |
String |
getProvider() |
void |
setAlgorithm(String value)
Sets the Random Number Generator (RNG) algorithm identifier for the
SecureRandom factory method used to create the
SecureRandom represented by this object's configuration. |
void |
setProvider(String value)
Sets the optional provider identifier for the
SecureRandom
factory method used to create the SecureRandom represented by
this object's configuration. |
String |
toString() |
getCamelContext, parsePropertyValue, parsePropertyValues, resolveResource, setCamelContext
protected String algorithm
SecureRandom
factory method used to create the
SecureRandom
represented by this object's configuration. See
Appendix A in the Java Cryptography Architecture API Specification & Reference
for information about standard RNG algorithm names.protected String provider
SecureRandom
factory
method used to create the SecureRandom
represented by this
object's configuration.public SecureRandomParameters()
public SecureRandom createSecureRandom() throws GeneralSecurityException
SecureRandom
instance initialized using the configured
algorithm and provider, if specified.GeneralSecurityException
- if the algorithm is not implemented by
any registered provider or if the identified provider does
not exist.public String getAlgorithm()
setAlgorithm(String)
public void setAlgorithm(String value)
SecureRandom
factory method used to create the
SecureRandom
represented by this object's configuration.
See Appendix A in the Java Cryptography Architecture Reference Guide
for information about standard RNG algorithm names.value
- the algorithm identifierpublic String getProvider()
setProvider(String)
public void setProvider(String value)
SecureRandom
factory method used to create the SecureRandom
represented by
this object's configuration.value
- the provider identifier or null
to use the highest
priority provider implementing the desired algorithmSecurity.getProviders()
Apache Camel