Class SignDataDetails
The details of the message that you want to sign.
Inherited Members
Namespace: Oci.KeymanagementService.Models
Assembly: OCI.DotNetSDK.Keymanagement.dll
Syntax
public class SignDataDetails
Properties
KeyId
Declaration
[Required(ErrorMessage = "KeyId is required.")]
[JsonProperty(PropertyName = "keyId")]
public string KeyId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the key used to sign the message. |
Remarks
Required
KeyVersionId
Declaration
[JsonProperty(PropertyName = "keyVersionId")]
public string KeyVersionId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the key version used to sign the message. |
LoggingContext
Declaration
[JsonProperty(PropertyName = "loggingContext")]
public Dictionary<string, string> LoggingContext { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> | Information that can be used to provide context for audit logging. It is a map that contains any additional data that you provide to include with audit logs, if audit logging is enabled. |
Message
Declaration
[Required(ErrorMessage = "Message is required.")]
[JsonProperty(PropertyName = "message")]
public string Message { get; set; }
Property Value
Type | Description |
---|---|
string | The base64-encoded binary data object denoting the message or message digest to sign. You can have a message up to 4096 bytes in size. To sign a larger message, provide the message digest. |
Remarks
Required
MessageType
Declaration
[JsonProperty(PropertyName = "messageType")]
[JsonConverter(typeof(StringEnumConverter))]
public SignDataDetails.MessageTypeEnum? MessageType { get; set; }
Property Value
Type | Description |
---|---|
SignDataDetails.MessageTypeEnum? | Denotes whether the value of the message parameter is a raw message or a message digest.
The default value, |
SigningAlgorithm
Declaration
[Required(ErrorMessage = "SigningAlgorithm is required.")]
[JsonProperty(PropertyName = "signingAlgorithm")]
[JsonConverter(typeof(StringEnumConverter))]
public SignDataDetails.SigningAlgorithmEnum? SigningAlgorithm { get; set; }
Property Value
Type | Description |
---|---|
SignDataDetails.SigningAlgorithmEnum? | The algorithm to use to sign the message or message digest. For RSA keys, supported signature schemes include PKCS #1 and RSASSA-PSS, along with different hashing algorithms. For ECDSA keys, ECDSA is the supported signature scheme with different hashing algorithms. When you pass a message digest for signing, ensure that you specify the same hashing algorithm as used when creating the message digest. |
Remarks
Required