The CryptoKey interface of the Web Crypto API represents a cryptographic
The CryptoKey interface of the Web Crypto API represents a cryptographic
(algorithm this)
Property.
An object describing the algorithm for which this key can be and any associated extra parameters. 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.
Property. An object describing the algorithm for which this key can be and any associated extra parameters. 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 this)
Property.
Boolean indicating whether or not the key may be extracted using or SubtleCrypto.wrapKey(). true: The key may be extracted. false The key may not be extracted. exportKey() or wrapKey() throw an exception if used to extract this key.
Property. Boolean indicating whether or not the key may be extracted using or SubtleCrypto.wrapKey(). true: The key may be extracted. false The key may not be extracted. exportKey() or wrapKey() throw an exception if used to extract this key.
(set-algorithm! this val)
Property.
An object describing the algorithm for which this key can be and any associated extra parameters. 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.
Property. An object describing the algorithm for which this key can be and any associated extra parameters. 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.
(set-extractable! this val)
Property.
Boolean indicating whether or not the key may be extracted using or SubtleCrypto.wrapKey(). true: The key may be extracted. false The key may not be extracted. exportKey() or wrapKey() throw an exception if used to extract this key.
Property. Boolean indicating whether or not the key may be extracted using or SubtleCrypto.wrapKey(). true: The key may be extracted. false The key may not be extracted. exportKey() or wrapKey() throw an exception if used to extract this key.
(set-type! this val)
Property.
String which may take one of the following values: "secret": This key is a secret key for use with a symmetric "private": This key is the private half of an asymmetric algorithm's "public": This key is the public half of an asymmetric algorithm's
Property. String which may take one of the following values: "secret": This key is a secret key for use with a symmetric "private": This key is the private half of an asymmetric algorithm's "public": This key is the public half of an asymmetric algorithm's
(set-usages! this val)
Property.
An Array of strings, indicating what can be done with the key. values for array elements are: "encrypt": The key may be used to encrypt messages. "decrypt": The key may be used to decrypt messages. "sign": The key may be used to sign messages. "verify": The key may be used to verify signatures. "deriveKey": The key may be used in deriving a new key. "deriveBits": The key may be used in deriving bits. "wrapKey": The key may be used to wrap a key. "unwrapKey": The key may be used to unwrap a key.
Property. An Array of strings, indicating what can be done with the key. values for array elements are: "encrypt": The key may be used to encrypt messages. "decrypt": The key may be used to decrypt messages. "sign": The key may be used to sign messages. "verify": The key may be used to verify signatures. "deriveKey": The key may be used in deriving a new key. "deriveBits": The key may be used in deriving bits. "wrapKey": The key may be used to wrap a key. "unwrapKey": The key may be used to unwrap a key.
(type this)
Property.
String which may take one of the following values: "secret": This key is a secret key for use with a symmetric "private": This key is the private half of an asymmetric algorithm's "public": This key is the public half of an asymmetric algorithm's
Property. String which may take one of the following values: "secret": This key is a secret key for use with a symmetric "private": This key is the private half of an asymmetric algorithm's "public": This key is the public half of an asymmetric algorithm's
(usages this)
Property.
An Array of strings, indicating what can be done with the key. values for array elements are: "encrypt": The key may be used to encrypt messages. "decrypt": The key may be used to decrypt messages. "sign": The key may be used to sign messages. "verify": The key may be used to verify signatures. "deriveKey": The key may be used in deriving a new key. "deriveBits": The key may be used in deriving bits. "wrapKey": The key may be used to wrap a key. "unwrapKey": The key may be used to unwrap a key.
Property. An Array of strings, indicating what can be done with the key. values for array elements are: "encrypt": The key may be used to encrypt messages. "decrypt": The key may be used to decrypt messages. "sign": The key may be used to sign messages. "verify": The key may be used to verify signatures. "deriveKey": The key may be used in deriving a new key. "deriveBits": The key may be used in deriving bits. "wrapKey": The key may be used to wrap a key. "unwrapKey": The key may be used to unwrap a key.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close