EphemeralKeyPair (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.crypto

## Class EphemeralKeyPair

- java.lang.Object
- - org.bouncycastle.crypto.EphemeralKeyPair

-     public class EphemeralKeyPair
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `EphemeralKeyPair(AsymmetricCipherKeyPair keyPair, KeyEncoder publicKeyEncoder)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `getEncodedPublicKey()`
    `AsymmetricCipherKeyPair` | `getKeyPair()`

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

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

- - ### Constructor Detail

    - #### EphemeralKeyPair

          public EphemeralKeyPair(AsymmetricCipherKeyPair keyPair,
                                  KeyEncoder publicKeyEncoder)

  - ### Method Detail

    - #### getKeyPair

          public AsymmetricCipherKeyPair getKeyPair()

    - #### getEncodedPublicKey

          public byte[] getEncodedPublicKey()