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 IAsymmetricKeyBuilder2

interface IAsymmetricKeyBuilder2
Extends IAsymmetricKeyBuilder Enhanced asymmetric key builder with support for raw key import. This interface extends the original IAsymmetricKeyBuilder with additional functionality for importing public keys from raw byte arrays, particularly useful for EC keys where raw format is more compact than DER.

Methods

buildPublicFromRaw()

IPublicKey* buildPublicFromRaw(u8[] raw)
Import a public key from raw bytes.

Parameters

raw
u8[] — Required The raw key bytes containing the unencoded asymmetric key material. This parameter expects raw binary key data, not wrapped in any encoding format. DER-encoded keys are NOT supported and must be decoded before use.

Returns

IPublicKey* The imported public key.

Throws


Last modified on October 29, 2026