pub struct GenerateDataKeyRequestBuilder { /* private fields */ }
Expand description
Builder for GenerateDataKeyRequest
.
Implementations§
Source§impl GenerateDataKeyRequestBuilder
impl GenerateDataKeyRequestBuilder
pub fn mount<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn key_type<VALUE: Into<DataKeyType>>(&mut self, value: VALUE) -> &mut Self
pub fn key_type<VALUE: Into<DataKeyType>>(&mut self, value: VALUE) -> &mut Self
Specifies the type of key to generate. If plaintext, the plaintext key will be returned along with the ciphertext. If wrapped, only the ciphertext value will be returned.
Sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Specifies the name of the encryption key to use to encrypt the datakey.
Sourcepub fn context<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn context<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Specifies the key derivation context, provided as a base64-encoded string. This must be provided if derivation is enabled.
Sourcepub fn nonce<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn nonce<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Specifies a nonce value, provided as base64 encoded. 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+. The value must be exactly 96 bits (12 bytes) long and the user must ensure that for any given context (and thus, any given encryption key) this nonce value is never reused.
Sourcepub fn bits<VALUE: Into<u16>>(&mut self, value: VALUE) -> &mut Self
pub fn bits<VALUE: Into<u16>>(&mut self, value: VALUE) -> &mut Self
Specifies the number of bits in the desired key. Can be 128, 256, or 512. Default is 256 bits.
Sourcepub fn build(
&self,
) -> Result<GenerateDataKeyRequest, GenerateDataKeyRequestBuilderError>
pub fn build( &self, ) -> Result<GenerateDataKeyRequest, GenerateDataKeyRequestBuilderError>
Trait Implementations§
Source§impl Clone for GenerateDataKeyRequestBuilder
impl Clone for GenerateDataKeyRequestBuilder
Source§fn clone(&self) -> GenerateDataKeyRequestBuilder
fn clone(&self) -> GenerateDataKeyRequestBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more