Class SecureRandomParameters
java.lang.Object
org.apache.camel.support.jsse.JsseParameters
org.apache.camel.support.jsse.SecureRandomParameters
- All Implemented Interfaces:
CamelContextAware, HasCamelContext
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns aSecureRandominstance initialized using the configured algorithm and provider, if specified.@Nullable String@Nullable StringvoidsetAlgorithm(@Nullable String value) Sets the Random Number Generator (RNG) algorithm identifier for theSecureRandomfactory method used to create theSecureRandomrepresented by this object's configuration.voidsetProvider(@Nullable String value) Sets the optional provider identifier for theSecureRandomfactory method used to create theSecureRandomrepresented by this object's configuration.toString()Methods inherited from class JsseParameters
getCamelContext, parsePropertyValue, parsePropertyValues, resolveResource, setCamelContext
-
Field Details
-
algorithm
-
provider
-
-
Constructor Details
-
SecureRandomParameters
public SecureRandomParameters()
-
-
Method Details
-
createSecureRandom
Returns aSecureRandominstance 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
-
setAlgorithm
Sets the Random Number Generator (RNG) algorithm identifier for theSecureRandomfactory method used to create theSecureRandomrepresented by this object's configuration. See https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html- Parameters:
value- the algorithm identifier
-
getProvider
-
setProvider
Sets the optional provider identifier for theSecureRandomfactory method used to create theSecureRandomrepresented by this object's configuration.- Parameters:
value- the provider identifier ornullto use the highest priority provider implementing the desired algorithm- See Also:
-
toString
-