purpose property

String? purpose
getter/setter pair

The immutable purpose of this CryptoKey.

Immutable. Possible string values are:

  • "CRYPTO_KEY_PURPOSE_UNSPECIFIED" : Not specified.
  • "ENCRYPT_DECRYPT" : CryptoKeys with this purpose may be used with Encrypt and Decrypt.
  • "ASYMMETRIC_SIGN" : CryptoKeys with this purpose may be used with AsymmetricSign and GetPublicKey.
  • "ASYMMETRIC_DECRYPT" : CryptoKeys with this purpose may be used with AsymmetricDecrypt and GetPublicKey.
  • "RAW_ENCRYPT_DECRYPT" : CryptoKeys with this purpose may be used with RawEncrypt and RawDecrypt. This purpose is meant to be used for interoperable symmetric encryption and does not support automatic CryptoKey rotation.
  • "MAC" : CryptoKeys with this purpose may be used with MacSign.

Implementation

core.String? purpose;