CryptoKey interface of the Web Crypto API represents a cryptographic key obtained from one of the SubtleCrypto methods generateKey() or importKey().
Accessors
algorithm
Get Signature
get algorithm():RsaHashedKeyGenParams | EcKeyGenParams | HmacKeyGenParams | AesKeyGenParams
An object describing the algorithm for which this key can be used and any
associated extra parameters. The object returned depends of the algorithm
used to generate the key.
Returns
RsaHashedKeyGenParams | EcKeyGenParams | HmacKeyGenParams | AesKeyGenParams
An object matching:
- AesKeyGenParams if the algorithm is any of the AES variants.
- RsaHashedKeyGenParams if the algorithm is any of the RSA variants.
- EcKeyGenParams if the algorithm is any of the EC variants.
- HmacKeyGenParams if the algorithm is HMAC.
extractable
Get Signature
get extractable():boolean
A boolean value indicating whether or not the key may be extracted using
SubtleCrypto.exportKey().
Returns
boolean

