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 AlgorithmParametersgetInstance(String name, Provider provider) Creates a newAlgorithmParametersinstance.
-
Constructor Details
-
AlgorithmParametersHelper
public AlgorithmParametersHelper()
-
-
Method Details
-
getInstance
public static AlgorithmParameters getInstance(String name, Provider provider) throws NoSuchAlgorithmException Creates a newAlgorithmParametersinstance.- Parameters:
name- The name of the requested algorithm. Must not benull.provider- The JCA provider,nullto 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.
-