Show / Hide Table of Contents

Class ImportKeyDetails

The details of the Key that you wish to import.

Inheritance
object
ImportKeyDetails
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.KeymanagementService.Models
Assembly: OCI.DotNetSDK.Keymanagement.dll
Syntax
public class ImportKeyDetails

Properties

AutoKeyRotationDetails

Declaration
[JsonProperty(PropertyName = "autoKeyRotationDetails")]
public AutoKeyRotationDetails AutoKeyRotationDetails { get; set; }
Property Value
Type Description
AutoKeyRotationDetails

CompartmentId

Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type Description
string

The OCID of the compartment that contains this key.

Remarks

Required

DefinedTags

Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type Description
Dictionary<string, Dictionary<string, object>>

Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"foo-namespace": {"bar-key": "foo-value"}}

DisplayName

Declaration
[Required(ErrorMessage = "DisplayName is required.")]
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type Description
string

A user-friendly name for the key. It does not have to be unique, and it is changeable. Avoid entering confidential information.

Remarks

Required

FreeformTags

Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type Description
Dictionary<string, string>

Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

IsAutoRotationEnabled

Declaration
[JsonProperty(PropertyName = "isAutoRotationEnabled")]
public bool? IsAutoRotationEnabled { get; set; }
Property Value
Type Description
bool?

A parameter specifying whether the auto key rotation is enabled or not.

KeyShape

Declaration
[Required(ErrorMessage = "KeyShape is required.")]
[JsonProperty(PropertyName = "keyShape")]
public KeyShape KeyShape { get; set; }
Property Value
Type Description
KeyShape
Remarks

Required

ProtectionMode

Declaration
[JsonProperty(PropertyName = "protectionMode")]
[JsonConverter(typeof(StringEnumConverter))]
public ImportKeyDetails.ProtectionModeEnum? ProtectionMode { get; set; }
Property Value
Type Description
ImportKeyDetails.ProtectionModeEnum?

The key's protection mode indicates how the key persists and where cryptographic operations that use the key are performed. A protection mode of HSM means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode of SOFTWARE means that the key persists on the server, protected by the vault's RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode of SOFTWARE are performed on the server. By default, a key's protection mode is set to HSM. You can't change a key's protection mode after the key is created or imported.

WrappedImportKey

Declaration
[Required(ErrorMessage = "WrappedImportKey is required.")]
[JsonProperty(PropertyName = "wrappedImportKey")]
public WrappedImportKey WrappedImportKey { get; set; }
Property Value
Type Description
WrappedImportKey
Remarks

Required

In this article
Back to top