Skip to main content

akeyless_api/models/
verify_ec_dsa.rs

1/*
2 * Akeyless API
3 *
4 * The purpose of this application is to provide access to Akeyless API.
5 *
6 * The version of the OpenAPI document: 3.0
7 * Contact: support@akeyless.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// VerifyEcDsa : verifyEcDsa is a command that verifies an ECDSA signature using a sha hash algorithm matching the key size
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct VerifyEcDsa {
17    /// The display id of the EC key to use for the verification process
18    #[serde(rename = "display-id", skip_serializing_if = "Option::is_none")]
19    pub display_id: Option<String>,
20    /// The item id of the EC key to use for the verification process
21    #[serde(rename = "item-id", skip_serializing_if = "Option::is_none")]
22    pub item_id: Option<i64>,
23    /// Set output format to JSON
24    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
25    pub json: Option<bool>,
26    /// The name of the EC key to use for the verification process
27    #[serde(rename = "key-name", skip_serializing_if = "Option::is_none")]
28    pub key_name: Option<String>,
29    /// The message to be verified in a base64 format
30    #[serde(rename = "message")]
31    pub message: String,
32    /// Markes that the message is already hashed
33    #[serde(rename = "prehashed", skip_serializing_if = "Option::is_none")]
34    pub prehashed: Option<bool>,
35    /// The message's signature
36    #[serde(rename = "signature")]
37    pub signature: String,
38    /// Authentication token (see `/auth` and `/configure`)
39    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
40    pub token: Option<String>,
41    /// The universal identity token, Required only for universal_identity authentication
42    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
43    pub uid_token: Option<String>,
44    /// The version of the key to use for verification
45    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
46    pub version: Option<i32>,
47}
48
49impl VerifyEcDsa {
50    /// verifyEcDsa is a command that verifies an ECDSA signature using a sha hash algorithm matching the key size
51    pub fn new(message: String, signature: String) -> VerifyEcDsa {
52        VerifyEcDsa {
53            display_id: None,
54            item_id: None,
55            json: None,
56            key_name: None,
57            message,
58            prehashed: None,
59            signature,
60            token: None,
61            uid_token: None,
62            version: None,
63        }
64    }
65}
66