org.bouncycastle.crypto.params

## Class SM2KeyExchangePublicParameters

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

- All Implemented Interfaces:
    CipherParameters

      public class SM2KeyExchangePublicParameters
      extends java.lang.Object
      implements CipherParameters

  Public parameters for an SM2 key exchange. In this case the ephemeralPublicKey provides the random point used in the algorithm.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SM2KeyExchangePublicParameters(ECPublicKeyParameters staticPublicKey, ECPublicKeyParameters ephemeralPublicKey)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ECPublicKeyParameters` | `getEphemeralPublicKey()`
    `ECPublicKeyParameters` | `getStaticPublicKey()`

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

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

- - ### Constructor Detail

    - #### SM2KeyExchangePublicParameters

          public SM2KeyExchangePublicParameters(ECPublicKeyParameters staticPublicKey,
                                                ECPublicKeyParameters ephemeralPublicKey)

  - ### Method Detail

    - #### getStaticPublicKey

          public ECPublicKeyParameters getStaticPublicKey()

    - #### getEphemeralPublicKey

          public ECPublicKeyParameters getEphemeralPublicKey()