Enum CryptoKey.CryptoKeyPurpose (2.52.0)

public enum CryptoKey.CryptoKeyPurpose extends Enum<CryptoKey.CryptoKeyPurpose> implements ProtocolMessageEnum

CryptoKeyPurpose describes the cryptographic capabilities of a CryptoKey. A given key can only be used for the operations allowed by its purpose. For more information, see Key purposes.

Protobuf enum google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose

Implements

ProtocolMessageEnum

Static Fields

Name Description
ASYMMETRIC_DECRYPT

CryptoKeys with this purpose may be used with AsymmetricDecrypt and GetPublicKey.

ASYMMETRIC_DECRYPT = 6;

ASYMMETRIC_DECRYPT_VALUE

CryptoKeys with this purpose may be used with AsymmetricDecrypt and GetPublicKey.

ASYMMETRIC_DECRYPT = 6;

ASYMMETRIC_SIGN

CryptoKeys with this purpose may be used with AsymmetricSign and GetPublicKey.

ASYMMETRIC_SIGN = 5;

ASYMMETRIC_SIGN_VALUE

CryptoKeys with this purpose may be used with AsymmetricSign and GetPublicKey.

ASYMMETRIC_SIGN = 5;

CRYPTO_KEY_PURPOSE_UNSPECIFIED

Not specified.

CRYPTO_KEY_PURPOSE_UNSPECIFIED = 0;

CRYPTO_KEY_PURPOSE_UNSPECIFIED_VALUE

Not specified.

CRYPTO_KEY_PURPOSE_UNSPECIFIED = 0;

ENCRYPT_DECRYPT

CryptoKeys with this purpose may be used with Encrypt and Decrypt.

ENCRYPT_DECRYPT = 1;

ENCRYPT_DECRYPT_VALUE

CryptoKeys with this purpose may be used with Encrypt and Decrypt.

ENCRYPT_DECRYPT = 1;

MAC

CryptoKeys with this purpose may be used with MacSign.

MAC = 9;

MAC_VALUE

CryptoKeys with this purpose may be used with MacSign.

MAC = 9;

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.

RAW_ENCRYPT_DECRYPT = 7;

RAW_ENCRYPT_DECRYPT_VALUE

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.

RAW_ENCRYPT_DECRYPT = 7;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()