Package org.bouncycastle.jcajce.provider.asymmetric.elgamal

## Class AlgorithmParametersSpi

- java.lang.Object
- - java.security.AlgorithmParametersSpi
  - - org.bouncycastle.jcajce.provider.symmetric.util.BaseAlgorithmParameters
    - - org.bouncycastle.jcajce.provider.asymmetric.elgamal.AlgorithmParametersSpi

-     public class AlgorithmParametersSpi
      extends BaseAlgorithmParameters

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `AlgorithmParametersSpi()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected byte[]` | `engineGetEncoded()` | Return the X.509 ASN.1 structure ElGamalParameter.
    `protected byte[]` | `engineGetEncoded​(java.lang.String format)` |
    `protected void` | `engineInit​(byte[] params)` |
    `protected void` | `engineInit​(byte[] params, java.lang.String format)` |
    `protected void` | `engineInit​(java.security.spec.AlgorithmParameterSpec paramSpec)` |
    `protected java.lang.String` | `engineToString()` |
    `protected java.security.spec.AlgorithmParameterSpec` | `localEngineGetParameterSpec​(java.lang.Class paramSpec)` |

    - ### Methods inherited from class org.bouncycastle.jcajce.provider.symmetric.util.BaseAlgorithmParameters

      `engineGetParameterSpec, isASN1FormatString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AlgorithmParametersSpi

          public AlgorithmParametersSpi()

  - ### Method Detail

    - #### engineGetEncoded

          protected byte[] engineGetEncoded()

      Return the X.509 ASN.1 structure ElGamalParameter.

            ElGamalParameter ::= SEQUENCE {
                             prime INTEGER, -- p
                             base INTEGER, -- g}

      Specified by:
        `engineGetEncoded` in class `java.security.AlgorithmParametersSpi`

    - #### engineGetEncoded

          protected byte[] engineGetEncoded​(java.lang.String format)

      Specified by:
        `engineGetEncoded` in class `java.security.AlgorithmParametersSpi`

    - #### localEngineGetParameterSpec

          protected java.security.spec.AlgorithmParameterSpec localEngineGetParameterSpec​(java.lang.Class paramSpec)
                                                                                   throws java.security.spec.InvalidParameterSpecException

      Specified by:
        `localEngineGetParameterSpec` in class `BaseAlgorithmParameters`
      Throws:
        `java.security.spec.InvalidParameterSpecException`

    - #### engineInit

          protected void engineInit​(java.security.spec.AlgorithmParameterSpec paramSpec)
                             throws java.security.spec.InvalidParameterSpecException

      Specified by:
        `engineInit` in class `java.security.AlgorithmParametersSpi`
      Throws:
        `java.security.spec.InvalidParameterSpecException`

    - #### engineInit

          protected void engineInit​(byte[] params)
                             throws java.io.IOException

      Specified by:
        `engineInit` in class `java.security.AlgorithmParametersSpi`
      Throws:
        `java.io.IOException`

    - #### engineInit

          protected void engineInit​(byte[] params,
                                    java.lang.String format)
                             throws java.io.IOException

      Specified by:
        `engineInit` in class `java.security.AlgorithmParametersSpi`
      Throws:
        `java.io.IOException`

    - #### engineToString

          protected java.lang.String engineToString()

      Specified by:
        `engineToString` in class `java.security.AlgorithmParametersSpi`