Package com.nimbusds.jose.crypto.impl
Class AlgorithmParametersHelper
- java.lang.Object
-
- com.nimbusds.jose.crypto.impl.AlgorithmParametersHelper
-
public class AlgorithmParametersHelper extends java.lang.ObjectUtility 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 java.security.AlgorithmParametersgetInstance(java.lang.String name, java.security.Provider provider)Creates a newAlgorithmParametersinstance.
-
-
-
Method Detail
-
getInstance
public static java.security.AlgorithmParameters getInstance(java.lang.String name, java.security.Provider provider) throws java.security.NoSuchAlgorithmExceptionCreates 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:
java.security.NoSuchAlgorithmException- If an AlgorithmParameterGeneratorSpi implementation for the specified algorithm is not available from the specified Provider object.
-
-