Package org.bouncycastle.jcajce.provider.asymmetric.edec

## Class KeyPairGeneratorSpi

- java.lang.Object
- - java.security.KeyPairGeneratorSpi
  - - org.bouncycastle.jcajce.provider.asymmetric.edec.KeyPairGeneratorSpi

- Direct Known Subclasses:
    `KeyPairGeneratorSpi.Ed25519`, `KeyPairGeneratorSpi.Ed448`, `KeyPairGeneratorSpi.EdDSA`, `KeyPairGeneratorSpi.X25519`, `KeyPairGeneratorSpi.X448`, `KeyPairGeneratorSpi.XDH`

      public class KeyPairGeneratorSpi
      extends java.security.KeyPairGeneratorSpi

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `static class` | `KeyPairGeneratorSpi.Ed25519` |
    `static class` | `KeyPairGeneratorSpi.Ed448` |
    `static class` | `KeyPairGeneratorSpi.EdDSA` |
    `static class` | `KeyPairGeneratorSpi.X25519` |
    `static class` | `KeyPairGeneratorSpi.X448` |
    `static class` | `KeyPairGeneratorSpi.XDH` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.security.KeyPair` | `generateKeyPair()` |
    `void` | `initialize​(int strength, java.security.SecureRandom secureRandom)` |
    `void` | `initialize​(java.security.spec.AlgorithmParameterSpec paramSpec, java.security.SecureRandom secureRandom)` |

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

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

- - ### Method Detail

    - #### initialize

          public void initialize​(int strength,
                                 java.security.SecureRandom secureRandom)

      Specified by:
        `initialize` in class `java.security.KeyPairGeneratorSpi`

    - #### initialize

          public void initialize​(java.security.spec.AlgorithmParameterSpec paramSpec,
                                 java.security.SecureRandom secureRandom)
                          throws java.security.InvalidAlgorithmParameterException

      Overrides:
        `initialize` in class `java.security.KeyPairGeneratorSpi`
      Throws:
        `java.security.InvalidAlgorithmParameterException`

    - #### generateKeyPair

          public java.security.KeyPair generateKeyPair()

      Specified by:
        `generateKeyPair` in class `java.security.KeyPairGeneratorSpi`