KeyShape

class oci.key_management.models.KeyShape(**kwargs)

Bases: object

The cryptographic properties of a key.

ALGORITHM_AES = 'AES'

A constant which can be used with the algorithm property of a KeyShape. This constant has a value of "AES"

__init__(**kwargs)

Initializes a new KeyShape object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • algorithm (str) -- The value to assign to the algorithm property of this KeyShape. Allowed values for this property are: "AES", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  • length (int) -- The value to assign to the length property of this KeyShape.
algorithm

[Required] Gets the algorithm of this KeyShape. The algorithm used by a key's KeyVersions to encrypt or decrypt.

Allowed values for this property are: "AES", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The algorithm of this KeyShape.
Return type:str
length

[Required] Gets the length of this KeyShape. The length of the key, expressed as an integer. Values of 16, 24, or 32 are supported.

Returns:The length of this KeyShape.
Return type:int