Package com.nimbusds.jose.crypto.impl
Class AlgorithmParametersHelper
java.lang.Object
com.nimbusds.jose.crypto.impl.AlgorithmParametersHelper
Utility for creating
AlgorithmParameters
objects with
an optional JCA provider.- Author:
- Justin Richer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AlgorithmParameters
getInstance
(String name, Provider provider) Creates a newAlgorithmParameters
instance.
-
Constructor Details
-
AlgorithmParametersHelper
public AlgorithmParametersHelper()
-
-
Method Details
-
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,null
to use the default.- Returns:
- The AlgorithmParameters instance.
- Throws:
NoSuchAlgorithmException
- If an AlgorithmParameterGeneratorSpi implementation for the specified algorithm is not available from the specified Provider object.
-