Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IEcdhContextBuilder

interface IEcdhContextBuilder
Extends com.amazon.apmf.IStandard Interface for building ECDH key exchange contexts.

Methods

curve()

IEcdhContextBuilder* curve(IEccCurve* curve)
Set the elliptic curve to use for key exchange.

Parameters

curve
IEccCurve* — Required The elliptic curve to use for key exchange.

Returns

IEcdhContextBuilder* The ECDH context builder object.

buildKeyExchangeContext()

IEcdhKeyExchangeContext* buildKeyExchangeContext(IPrivateKey* privateKey)
Build a context for performing key exchange.

Parameters

privateKey
IPrivateKey* — Required The private key to use for key exchange.

Returns

IEcdhKeyExchangeContext* The ECDH key exchange context object.
Last modified on October 29, 2026