org.apache.camel.util.jsse
Class SecureRandomParameters

java.lang.Object
  extended by org.apache.camel.util.jsse.JsseParameters
      extended by org.apache.camel.util.jsse.SecureRandomParameters
All Implemented Interfaces:
CamelContextAware

public class SecureRandomParameters
extends JsseParameters


Field Summary
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 Summary
SecureRandomParameters()
           
 
Method Summary
 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()
           
 
Methods inherited from class org.apache.camel.util.jsse.JsseParameters
getCamelContext, parsePropertyValue, parsePropertyValues, resolveResource, setCamelContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

algorithm

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. See Appendix A in the Java Cryptography Architecture API Specification & Reference for information about standard RNG algorithm names.


provider

protected String provider
The optional provider identifier for the SecureRandom factory method used to create the SecureRandom represented by this object's configuration.

Constructor Detail

SecureRandomParameters

public SecureRandomParameters()
Method Detail

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()
See Also:
setAlgorithm(String)

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 Appendix A in the Java Cryptography Architecture Reference Guide for information about standard RNG algorithm names.

Parameters:
value - the algorithm identifier

getProvider

public String getProvider()
See Also:
setProvider(String)

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:
Security.getProviders()

toString

public String toString()
Overrides:
toString in class Object


Apache CAMEL