Interface IKeyWithPurpose
interface IKeyWithPurpose
Extends com.amazon.apmf.IStandard
Interface to be implemented by keys supporting the purposes attribute.
Methods
getPurposes()
string[] getPurposes()
Get the purposes enabled for this key.
Returns
string[]
An array of strings representing key purposes.
hasPurpose()
Check if a particular purpose is enabled for this key.boolhasPurpose(stringpurpose)
Parameters
purpose
string — Required
A string containing a key purpose.
Returns
bool
true if the purpose is enabled for this key, false otherwise.
Constants
DECRYPT
A key that can be used for decryption.string="DECRYPT"
ENCRYPT
A key that can be used for encryption.string="ENCRYPT"
SIGN
A key that can be used for signing.string="SIGN"
VERIFY
A key that can be used for verifying.string="VERIFY"
WRAP
A key that can be used for wrapping another key.string="WRAP"
UNWRAP
A key that can be used for unwrapping another key.string="UNWRAP"
DERIVE
A key that can be used for deriving another key.string="DERIVE"

