KeyShape¶

class
oci.key_management.models.
KeyShape
(**kwargs)¶ Bases:
object
The cryptographic properties of a key.
Attributes
ALGORITHM_AES
A constant which can be used with the algorithm property of a KeyShape. ALGORITHM_RSA
A constant which can be used with the algorithm property of a KeyShape. algorithm
[Required] Gets the algorithm of this KeyShape. length
[Required] Gets the length of this KeyShape. Methods
__init__
(**kwargs)Initializes a new KeyShape object with values from keyword arguments. 
ALGORITHM_AES
= 'AES'¶ A constant which can be used with the algorithm property of a KeyShape. This constant has a value of “AES”

ALGORITHM_RSA
= 'RSA'¶ A constant which can be used with the algorithm property of a KeyShape. This constant has a value of “RSA”

__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”, “RSA”, ‘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 key versions to encrypt or decrypt.
Allowed values for this property are: “AES”, “RSA”, ‘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
