type property

KeyType get type

The read-only type property of the CryptoKey interface indicates which kind of key is represented by the object. It can have the following values:

  • "secret": This key is a secret key for use with a .
  • "private": This key is the private half of an CryptoKeyPair.
  • "public": This key is the public half of an CryptoKeyPair.

Implementation

external KeyType get type;