Class DiffieHellmanParameterGeneratorHybrid


  • public final class DiffieHellmanParameterGeneratorHybrid
    extends java.security.AlgorithmParameterGeneratorSpi
    This class is a facade for the generator of the parameter set used by the Diffie-Hellman key agreement as defined in the PKCS #3 standard.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.security.AlgorithmParameters engineGenerateParameters()
      Generates the algorithm parameters.
      protected void engineInit​(int size)
      This method provides the settings for the AlgorithmParameterGenerator.
      protected void engineInit​(int size, java.security.SecureRandom random)
      This method provides the settings for the AlgorithmParameterGenerator.
      protected void engineInit​(java.security.spec.AlgorithmParameterSpec paramSpec)
      This method provides the settings for the AlgorithmParameterGenerator.
      protected void engineInit​(java.security.spec.AlgorithmParameterSpec paramSpec, java.security.SecureRandom random)
      This method provides the settings for the AlgorithmParameterGenerator.
      • Methods inherited from class java.lang.Object

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

      • DiffieHellmanParameterGeneratorHybrid

        public DiffieHellmanParameterGeneratorHybrid()
        Creates an instance of the DiffieHellmanParameterGeneratorHybrid class.
    • Method Detail

      • engineInit

        protected void engineInit​(java.security.spec.AlgorithmParameterSpec paramSpec)
                           throws java.security.spec.InvalidParameterSpecException
        This method provides the settings for the AlgorithmParameterGenerator.
        Parameters:
        paramSpec - The settings
        Throws:
        java.security.spec.InvalidParameterSpecException
      • engineInit

        protected void engineInit​(int size)
        This method provides the settings for the AlgorithmParameterGenerator.
        Parameters:
        size - The strength
      • engineInit

        protected void engineInit​(java.security.spec.AlgorithmParameterSpec paramSpec,
                                  java.security.SecureRandom random)
        This method provides the settings for the AlgorithmParameterGenerator.
        Specified by:
        engineInit in class java.security.AlgorithmParameterGeneratorSpi
        Parameters:
        paramSpec - The settings
        random - the source of randomness.
      • engineInit

        protected void engineInit​(int size,
                                  java.security.SecureRandom random)
        This method provides the settings for the AlgorithmParameterGenerator.
        Specified by:
        engineInit in class java.security.AlgorithmParameterGeneratorSpi
        Parameters:
        size - The strength
        random - the source of randomness.
      • engineGenerateParameters

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