Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace KeyShape

The cryptographic properties of a key.

Properties

algorithm

algorithm: Algorithm

The algorithm used by a key's key versions to encrypt or decrypt. Only AES algorithm is supported for {@code External} keys.

Optional curveId

curveId: CurveId

Supported curve IDs for ECDSA keys.

length

length: number

The length of the key in bytes, expressed as an integer. Supported values include the following:

  • AES: 16, 24, or 32
  • RSA: 256, 384, or 512
  • ECDSA: 32, 48, or 66 Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

Functions

getDeserializedJsonObj

  • getDeserializedJsonObj(obj: KeyShape): object

getJsonObj