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 IKeystoreModule

interface IKeystoreModule
Extends com.amazon.apmf.IStandard This is the top level interface for retrieving handles to a keystore.

Methods

getNamedKeystore()

IKeystore* getNamedKeystore(string name)
Get a keystore by name. This will typically be used to retrieve special purpose keystores that may be pre-provisioned with keys for a specific purpose. Many such keystores will require privileges for access.

Parameters

name
string — Required The name of the keystore to retrieve.

Returns

IKeystore* A keystore.

Throws


getPrivateKeystore()

IKeystore* getPrivateKeystore(com.amazon.apmf.ICredential* cred, SecurityLevel* level)
Get a keystore whose keys are scoped to the given security principal.

Parameters

cred
com.amazon.apmf.ICredential* — Required Credential representing the security principal who owns the keystore.
level
SecurityLevel* — Required The desired security level of the keystore

Returns

IKeystore* A keystore.

Throws


getMostSecurePrivateKeystore()

IKeystore* getMostSecurePrivateKeystore(com.amazon.apmf.ICredential* cred)
Get the most secure keystore whose keys are scoped to the given security principal.

Parameters

cred
com.amazon.apmf.ICredential* — Required Credential representing the security principal who owns the keystore.

Returns

IKeystore* A keystore.

Throws


getFastestPrivateKeystore()

IKeystore* getFastestPrivateKeystore(com.amazon.apmf.ICredential* cred)
Get the fastest keystore whose keys are scoped to the given security principal.

Parameters

cred
com.amazon.apmf.ICredential* — Required Credential representing the security principal who owns the keystore.

Returns

IKeystore* A keystore

Throws


Last modified on October 29, 2026