ExportedKeyData

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

Bases: object

The response to a request to export key material.

Attributes

ALGORITHM_RSA_OAEP_AES_SHA256 A constant which can be used with the algorithm property of a ExportedKeyData.
ALGORITHM_RSA_OAEP_SHA256 A constant which can be used with the algorithm property of a ExportedKeyData.
algorithm [Required] Gets the algorithm of this ExportedKeyData.
encrypted_key [Required] Gets the encrypted_key of this ExportedKeyData.
key_id [Required] Gets the key_id of this ExportedKeyData.
key_version_id [Required] Gets the key_version_id of this ExportedKeyData.
time_created [Required] Gets the time_created of this ExportedKeyData.
vault_id [Required] Gets the vault_id of this ExportedKeyData.

Methods

__init__(**kwargs) Initializes a new ExportedKeyData object with values from keyword arguments.
ALGORITHM_RSA_OAEP_AES_SHA256 = 'RSA_OAEP_AES_SHA256'

A constant which can be used with the algorithm property of a ExportedKeyData. This constant has a value of “RSA_OAEP_AES_SHA256”

ALGORITHM_RSA_OAEP_SHA256 = 'RSA_OAEP_SHA256'

A constant which can be used with the algorithm property of a ExportedKeyData. This constant has a value of “RSA_OAEP_SHA256”

__init__(**kwargs)

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

Parameters:
  • key_version_id (str) – The value to assign to the key_version_id property of this ExportedKeyData.
  • key_id (str) – The value to assign to the key_id property of this ExportedKeyData.
  • time_created (datetime) – The value to assign to the time_created property of this ExportedKeyData.
  • vault_id (str) – The value to assign to the vault_id property of this ExportedKeyData.
  • encrypted_key (str) – The value to assign to the encrypted_key property of this ExportedKeyData.
  • algorithm (str) – The value to assign to the algorithm property of this ExportedKeyData. Allowed values for this property are: “RSA_OAEP_AES_SHA256”, “RSA_OAEP_SHA256”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
algorithm

[Required] Gets the algorithm of this ExportedKeyData. The encryption algorithm to use to encrypt exportable key material from a key that persists on the server (as opposed to a key that persists on a hardware security module and, therefore, cannot be exported). Specifying RSA_OAEP_AES_SHA256 invokes the RSA AES key wrap mechanism, which generates a temporary AES key. The temporary AES key is wrapped by the RSA public wrapping key provided along with the request, creating a wrapped temporary AES key. The temporary AES key is also used to wrap the exportable key material. The wrapped temporary AES key and the wrapped exportable key material are concatenated, producing concatenated blob output that jointly represents them. Specifying RSA_OAEP_SHA256 means that the exportable key material is wrapped by the RSA public wrapping key provided along with the request.

Allowed values for this property are: “RSA_OAEP_AES_SHA256”, “RSA_OAEP_SHA256”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The algorithm of this ExportedKeyData.
Return type:str
encrypted_key

[Required] Gets the encrypted_key of this ExportedKeyData. The base64-encoded exported key material, which is encrypted by using the public RSA wrapping key specified in the export request.

Returns:The encrypted_key of this ExportedKeyData.
Return type:str
key_id

[Required] Gets the key_id of this ExportedKeyData. The OCID of the master encryption key associated with this key version.

Returns:The key_id of this ExportedKeyData.
Return type:str
key_version_id

[Required] Gets the key_version_id of this ExportedKeyData. The OCID of the key version.

Returns:The key_version_id of this ExportedKeyData.
Return type:str
time_created

[Required] Gets the time_created of this ExportedKeyData. The date and time this key version was created, expressed in RFC 3339 timestamp format.

Returns:The time_created of this ExportedKeyData.
Return type:datetime
vault_id

[Required] Gets the vault_id of this ExportedKeyData. The OCID of the vault that contains this key version.

Returns:The vault_id of this ExportedKeyData.
Return type:str