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 IDerExportableKey

interface IDerExportableKey
Extends com.amazon.apmf.IStandard Interface for exporting keys using the DER encoding. Asymmetric keys that can be exported will generally implement this interface.

Methods

exportDer()

u8[] exportDer()
Export key as a DER encoded blob. Public keys will be a DER encoding of SubjectPublicKeyInfo as described in RFC 5280, Section 4.1. Private keys will be a DER encoding of the PKCS#8 format.

Returns

u8[] An array of bytes containing the key in the DER encoding.
Last modified on October 29, 2026