pub struct RewrapDataRequest {
pub mount: String,
pub name: String,
pub ciphertext: String,
pub context: Option<String>,
pub key_version: Option<u64>,
pub nonce: Option<String>,
}
Expand description
§Rewrap Data
This endpoint rewraps the provided ciphertext using the latest version of the named key. Because this never returns plaintext, it is possible to delegate this functionality to untrusted users or scripts.
- Path: {self.mount}/rewrap/{self.name}
- Method: POST
- Response: RewrapDataResponse
- Reference: https://developer.hashicorp.com/vault/api-docs/secret/transit#rewrap-data
Fields§
§mount: String
§name: String
Specifies the name of the encryption key to re-encrypt against.
ciphertext: String
Specifies the ciphertext to re-encrypt.
context: Option<String>
Specifies the base64 encoded context for key derivation. This is required if key derivation is enabled.
key_version: Option<u64>
Specifies the version of the key to use for the operation. If not set, uses the latest version. Must be greater than or equal to the key’s min_encryption_version, if set.
nonce: Option<String>
Specifies a base64 encoded nonce value used during encryption. Must be provided if convergent encryption is enabled for this key and the key was generated with Vault 0.6.1. Not required for keys created in 0.6.2+.
Implementations§
Source§impl RewrapDataRequest
impl RewrapDataRequest
pub fn builder() -> RewrapDataRequestBuilder
Trait Implementations§
Source§impl Debug for RewrapDataRequest
impl Debug for RewrapDataRequest
Source§impl Default for RewrapDataRequest
impl Default for RewrapDataRequest
Source§fn default() -> RewrapDataRequest
fn default() -> RewrapDataRequest
Source§impl Endpoint for RewrapDataRequest
impl Endpoint for RewrapDataRequest
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 = RewrapDataResponse
type Response = RewrapDataResponse
parse()
method is called.