Package org.bouncycastle.crypto.params

## Class SM2KeyExchangePrivateParameters

- java.lang.Object
- - org.bouncycastle.crypto.params.SM2KeyExchangePrivateParameters

- All Implemented Interfaces:
    `CipherParameters`

      public class SM2KeyExchangePrivateParameters
      extends java.lang.Object
      implements CipherParameters

  Private parameters for an SM2 key exchange. The ephemeralPrivateKey is used to calculate the random point used in the algorithm.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `SM2KeyExchangePrivateParameters​(boolean initiator, ECPrivateKeyParameters staticPrivateKey, ECPrivateKeyParameters ephemeralPrivateKey)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `ECPrivateKeyParameters` | `getEphemeralPrivateKey()` |
    `ECPoint` | `getEphemeralPublicPoint()` |
    `ECPrivateKeyParameters` | `getStaticPrivateKey()` |
    `ECPoint` | `getStaticPublicPoint()` |
    `boolean` | `isInitiator()` |

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

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

- - ### Constructor Detail

    - #### SM2KeyExchangePrivateParameters

          public SM2KeyExchangePrivateParameters​(boolean initiator,
                                                 ECPrivateKeyParameters staticPrivateKey,
                                                 ECPrivateKeyParameters ephemeralPrivateKey)

  - ### Method Detail

    - #### isInitiator

          public boolean isInitiator()

    - #### getStaticPrivateKey

          public ECPrivateKeyParameters getStaticPrivateKey()

    - #### getStaticPublicPoint

          public ECPoint getStaticPublicPoint()

    - #### getEphemeralPrivateKey

          public ECPrivateKeyParameters getEphemeralPrivateKey()

    - #### getEphemeralPublicPoint

          public ECPoint getEphemeralPublicPoint()