Package com.nimbusds.jose.crypto.impl
Class AlgorithmParametersHelper
- java.lang.Object
-
- com.nimbusds.jose.crypto.impl.AlgorithmParametersHelper
-
public class AlgorithmParametersHelper extends Object
Utility for creatingAlgorithmParameters
objects with an optional JCA provider.- Author:
- Justin Richer
-
-
Constructor Summary
Constructors Constructor Description AlgorithmParametersHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AlgorithmParameters
getInstance(String name, Provider provider)
Creates a newAlgorithmParameters
instance.
-
-
-
Constructor Detail
-
AlgorithmParametersHelper
public AlgorithmParametersHelper()
-
-
Method Detail
-
getInstance
public static AlgorithmParameters getInstance(String name, Provider provider) throws NoSuchAlgorithmException
Creates a newAlgorithmParameters
instance.- Parameters:
name
- The name of the requested algorithm. Must not benull
.provider
- The JCA provider, ornull
to use the default one.- Returns:
- The AlgorithmParameters instance.
- Throws:
NoSuchAlgorithmException
- If an AlgorithmParameterGeneratorSpi implementation for the specified algorithm is not available from the specified Provider object.
-
-