Class DSAParameterGenerator


  • public class DSAParameterGenerator
    extends java.security.AlgorithmParameterGeneratorSpi
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.security.AlgorithmParameters engineGenerateParameters()
      Generates the parameters.
      protected void engineInit​(int strength, java.security.SecureRandom random)
      Initializes this parameter generator for a certain strength and source of randomness.
      protected void engineInit​(java.security.spec.AlgorithmParameterSpec genParamSpec, java.security.SecureRandom random)
      Initializes this parameter generator with a set of algorithm-specific parameter generation values.
      • Methods inherited from class java.lang.Object

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

      • DSAParameterGenerator

        public DSAParameterGenerator()
    • Method Detail

      • engineInit

        protected void engineInit​(int strength,
                                  java.security.SecureRandom random)
        Initializes this parameter generator for a certain strength and source of randomness.
        Specified by:
        engineInit in class java.security.AlgorithmParameterGeneratorSpi
        Parameters:
        strength - the strength (size of prime) in bits
        random - the source of randomness
      • engineInit

        protected void engineInit​(java.security.spec.AlgorithmParameterSpec genParamSpec,
                                  java.security.SecureRandom random)
                           throws java.security.InvalidAlgorithmParameterException
        Initializes this parameter generator with a set of algorithm-specific parameter generation values.
        Specified by:
        engineInit in class java.security.AlgorithmParameterGeneratorSpi
        Parameters:
        params - the set of algorithm-specific parameter generation values
        random - the source of randomness
        Throws:
        java.security.InvalidAlgorithmParameterException - if the given parameter generation values are inappropriate for this parameter generator
      • engineGenerateParameters

        protected java.security.AlgorithmParameters engineGenerateParameters()
        Generates the parameters.
        Specified by:
        engineGenerateParameters in class java.security.AlgorithmParameterGeneratorSpi
        Returns:
        the new AlgorithmParameters object