Package org.apache.camel.support.jsse
Class SecureRandomParameters
java.lang.Object
org.apache.camel.support.jsse.JsseParameters
org.apache.camel.support.jsse.SecureRandomParameters
- All Implemented Interfaces:
CamelContextAware
,HasCamelContext
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
The Random Number Generator algorithm identifier for theSecureRandom
factory method used to create theSecureRandom
represented by this object's configuration.protected String
The optional provider identifier for theSecureRandom
factory method used to create theSecureRandom
represented by this object's configuration. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns aSecureRandom
instance initialized using the configured algorithm and provider, if specified.void
setAlgorithm
(String value) Sets the Random Number Generator (RNG) algorithm identifier for theSecureRandom
factory method used to create theSecureRandom
represented by this object's configuration.void
setProvider
(String value) Sets the optional provider identifier for theSecureRandom
factory method used to create theSecureRandom
represented by this object's configuration.toString()
Methods inherited from class org.apache.camel.support.jsse.JsseParameters
getCamelContext, parsePropertyValue, parsePropertyValues, resolveResource, setCamelContext
-
Field Details
-
algorithm
The Random Number Generator algorithm identifier for theSecureRandom
factory method used to create theSecureRandom
represented by this object's configuration. See Appendix A in the Java Cryptography Architecture API Specification & Reference for information about standard RNG algorithm names. -
provider
The optional provider identifier for theSecureRandom
factory method used to create theSecureRandom
represented by this object's configuration.
-
-
Constructor Details
-
SecureRandomParameters
public SecureRandomParameters()
-
-
Method Details
-
createSecureRandom
Returns aSecureRandom
instance initialized using the configured algorithm and provider, if specified.- Returns:
- the configured instance
- Throws:
GeneralSecurityException
- if the algorithm is not implemented by any registered provider or if the identified provider does not exist.
-
getAlgorithm
- See Also:
-
setAlgorithm
Sets the Random Number Generator (RNG) algorithm identifier for theSecureRandom
factory method used to create theSecureRandom
represented by this object's configuration. See Appendix A in the Java Cryptography Architecture Reference Guide for information about standard RNG algorithm names.- Parameters:
value
- the algorithm identifier
-
getProvider
- See Also:
-
setProvider
Sets the optional provider identifier for theSecureRandom
factory method used to create theSecureRandom
represented by this object's configuration.- Parameters:
value
- the provider identifier ornull
to use the highest priority provider implementing the desired algorithm- See Also:
-
toString
-