Extends
BaseCryptoClass
Accessors
exportable
Get Signature
get exportable():boolean
Check whether the key is exportable or not.
Returns
boolean
true if the key is exportable, false otherwise.
purposes
Get Signature
get purposes():KeyPurpose[]
Get the purposes enabled for this key.
Returns
KeyPurpose[]
An array with the purposes enabled for this key.
Methods
exportRaw()
exportRaw():Promise<ArrayBuffer>
Export the symmetric key as raw bytes.
This method should only be called on keys that are marked as exportable.
Returns
Promise<ArrayBuffer>
A promise that resolves to the raw key bytes.
Throws
AccessDeniedError If the key is not exportable.hasPurpose()
hasPurpose(purpose): boolean
Check if a particular purpose is enabled for this key.
Parameters
purpose
KeyPurpose
A key purpose to check.
Returns
boolean
true if the purpose is enabled for this key, false otherwise.

