39 |
|
|
40 |
import java.security.spec.AlgorithmParameterSpec; |
import java.security.spec.AlgorithmParameterSpec; |
41 |
|
|
42 |
|
import gnu.java.security.Engine; |
43 |
|
|
44 |
/** |
/** |
45 |
* <p>The <code>AlgorithmParameterGenerator</code> class is used to generate a |
* <p>The <code>AlgorithmParameterGenerator</code> class is used to generate a |
46 |
* set of parameters to be used with a certain algorithm. Parameter generators |
* set of parameters to be used with a certain algorithm. Parameter generators |
203 |
(AlgorithmParameterGeneratorSpi) Engine.getInstance( |
(AlgorithmParameterGeneratorSpi) Engine.getInstance( |
204 |
ALGORITHM_PARAMETER_GENERATOR, algorithm, provider), |
ALGORITHM_PARAMETER_GENERATOR, algorithm, provider), |
205 |
provider, algorithm); |
provider, algorithm); |
206 |
} |
} |
207 |
|
catch (java.lang.reflect.InvocationTargetException ite) |
208 |
|
{ |
209 |
|
throw new NoSuchAlgorithmException(algorithm); |
210 |
|
} |
211 |
catch (ClassCastException cce) |
catch (ClassCastException cce) |
212 |
{ |
{ |
213 |
throw new NoSuchAlgorithmException(algorithm); |
throw new NoSuchAlgorithmException(algorithm); |