Class SecureRandomParameters

java.lang.Object
org.apache.camel.support.jsse.JsseParameters
org.apache.camel.support.jsse.SecureRandomParameters
All Implemented Interfaces:
CamelContextAware, HasCamelContext

public class SecureRandomParameters extends JsseParameters
  • Field Details

    • algorithm

      protected String algorithm
    • provider

      protected String provider
  • Constructor Details

    • SecureRandomParameters

      public SecureRandomParameters()
  • Method Details

    • createSecureRandom

      public SecureRandom createSecureRandom() throws GeneralSecurityException
      Returns a SecureRandom 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

      public String getAlgorithm()
    • setAlgorithm

      public 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. See https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html
      Parameters:
      value - the algorithm identifier
    • getProvider

      public String getProvider()
    • setProvider

      public 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.
      Parameters:
      value - the provider identifier or null to use the highest priority provider implementing the desired algorithm
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object