An object detailing the algorithm for which the key can be used along with additional algorithm-specific parameters.
Read-only.
Type:
booleanWhen true, the CryptoKey can be extracted using either
subtle.exportKey() or subtle.wrapKey().
Read-only.
Type:
stringOne of
'secret', 'private', or 'public'.A string identifying whether the key is a symmetric ('secret') or
asymmetric ('private' or 'public') key.
Type:
string[]An array of strings identifying the operations for which the key may be used.
The possible usages are:
'encrypt'- Enable using the key withsubtle.encrypt()'decrypt'- Enable using the key withsubtle.decrypt()'sign'- Enable using the key withsubtle.sign()'verify'- Enable using the key withsubtle.verify()'deriveKey'- Enable using the key withsubtle.deriveKey()'deriveBits'- Enable using the key withsubtle.deriveBits()'encapsulateBits'- Enable using the key withsubtle.encapsulateBits()'decapsulateBits'- Enable using the key withsubtle.decapsulateBits()'encapsulateKey'- Enable using the key withsubtle.encapsulateKey()'decapsulateKey'- Enable using the key withsubtle.decapsulateKey()'wrapKey'- Enable using the key withsubtle.wrapKey()'unwrapKey'- Enable using the key withsubtle.unwrapKey()
Valid key usages depend on the key algorithm (identified by
cryptokey.algorithm.name). See Crypto operation APIs for the operations
supported by each key algorithm.