pub struct VerifySignedDataRequest {
pub mount: String,
pub name: String,
pub hash_algorithm: Option<HashAlgorithm>,
pub input: String,
pub signature: Option<String>,
pub hmac: Option<String>,
pub context: Option<String>,
pub prehashed: Option<bool>,
pub signature_algorithm: Option<SignatureAlgorithm>,
pub marshaling_algorithm: Option<MarshalingAlgorithm>,
}
Expand description
§Verify Signed Data
This endpoint returns whether the provided signature is valid for the given data.
- Path: {self.mount}/verify/{self.name}(/{self.hash_algorithm)
- Method: POST
- Response: VerifySignedDataResponse
- Reference: https://developer.hashicorp.com/vault/api-docs/secret/transit#verify-signed-data
Fields§
§mount: String
§name: String
§hash_algorithm: Option<HashAlgorithm>
Specifies the hash algorithm to use.
input: String
Specifies the base64 encoded input data.
signature: Option<String>
Specifies the signature output from the /transit/sign function. Either this must be supplied or hmac must be supplied.
hmac: Option<String>
Specifies the signature output from the /transit/hmac function. Either this must be supplied or signature must be supplied.
context: Option<String>
Base64 encoded context for key derivation. Required if key derivation is enabled; currently only available with ed25519 keys.
prehashed: Option<bool>
Set to true when the input is already hashed. If the key type is rsa-2048, rsa-3072 or rsa-4096, then the algorithm used to hash the input should be indicated by the hash_algorithm parameter.
signature_algorithm: Option<SignatureAlgorithm>
When using a RSA key, specifies the RSA signature algorithm to use for signature verification.
marshaling_algorithm: Option<MarshalingAlgorithm>
Specifies the way in which the signature was originally marshaled. This currently only applies to ECDSA keys.
Implementations§
Trait Implementations§
source§impl Debug for VerifySignedDataRequest
impl Debug for VerifySignedDataRequest
source§impl Default for VerifySignedDataRequest
impl Default for VerifySignedDataRequest
source§fn default() -> VerifySignedDataRequest
fn default() -> VerifySignedDataRequest
source§impl Endpoint for VerifySignedDataRequest
impl Endpoint for VerifySignedDataRequest
source§const REQUEST_BODY_TYPE: RequestType = RequestType::JSON
const REQUEST_BODY_TYPE: RequestType = RequestType::JSON
source§const RESPONSE_BODY_TYPE: ResponseType = ResponseType::JSON
const RESPONSE_BODY_TYPE: ResponseType = ResponseType::JSON
source§type Response = VerifySignedDataResponse
type Response = VerifySignedDataResponse
parse()
method is called.