Package com.nimbusds.jose.crypto.impl
Class AlgorithmParametersHelper
- java.lang.Object
-
- com.nimbusds.jose.crypto.impl.AlgorithmParametersHelper
-
public class AlgorithmParametersHelper extends Object
Utility for creatingAlgorithmParametersobjects 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 AlgorithmParametersgetInstance(String name, Provider provider)Creates a newAlgorithmParametersinstance.
-
-
-
Constructor Detail
-
AlgorithmParametersHelper
public AlgorithmParametersHelper()
-
-
Method Detail
-
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, ornullto 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.
-
-