Class AlgorithmParametersHelper


  • public class AlgorithmParametersHelper
    extends java.lang.Object
    Utility for creating AlgorithmParameters objects with an optional JCA provider.
    Author:
    Justin Richer
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.security.AlgorithmParameters getInstance​(java.lang.String name, java.security.Provider provider)
      Creates a new AlgorithmParameters instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AlgorithmParametersHelper

        public AlgorithmParametersHelper()
    • Method Detail

      • getInstance

        public static java.security.AlgorithmParameters getInstance​(java.lang.String name,
                                                                    java.security.Provider provider)
                                                             throws java.security.NoSuchAlgorithmException
        Creates a new AlgorithmParameters instance.
        Parameters:
        name - The name of the requested algorithm. Must not be null.
        provider - The JCA provider, or null to 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.