#[non_exhaustive]pub struct WrappedKeyBuilder { /* private fields */ }
Expand description
A builder for WrappedKey
.
Implementations§
source§impl WrappedKeyBuilder
impl WrappedKeyBuilder
sourcepub fn wrapping_key_arn(self, input: impl Into<String>) -> Self
pub fn wrapping_key_arn(self, input: impl Into<String>) -> Self
The KeyARN
of the wrapped key.
sourcepub fn set_wrapping_key_arn(self, input: Option<String>) -> Self
pub fn set_wrapping_key_arn(self, input: Option<String>) -> Self
The KeyARN
of the wrapped key.
sourcepub fn get_wrapping_key_arn(&self) -> &Option<String>
pub fn get_wrapping_key_arn(&self) -> &Option<String>
The KeyARN
of the wrapped key.
sourcepub fn wrapped_key_material_format(
self,
input: WrappedKeyMaterialFormat
) -> Self
pub fn wrapped_key_material_format( self, input: WrappedKeyMaterialFormat ) -> Self
The key block format of a wrapped key.
This field is required.sourcepub fn set_wrapped_key_material_format(
self,
input: Option<WrappedKeyMaterialFormat>
) -> Self
pub fn set_wrapped_key_material_format( self, input: Option<WrappedKeyMaterialFormat> ) -> Self
The key block format of a wrapped key.
sourcepub fn get_wrapped_key_material_format(
&self
) -> &Option<WrappedKeyMaterialFormat>
pub fn get_wrapped_key_material_format( &self ) -> &Option<WrappedKeyMaterialFormat>
The key block format of a wrapped key.
sourcepub fn key_material(self, input: impl Into<String>) -> Self
pub fn key_material(self, input: impl Into<String>) -> Self
Parameter information for generating a wrapped key using TR-31 or TR-34 skey exchange method.
This field is required.sourcepub fn set_key_material(self, input: Option<String>) -> Self
pub fn set_key_material(self, input: Option<String>) -> Self
Parameter information for generating a wrapped key using TR-31 or TR-34 skey exchange method.
sourcepub fn get_key_material(&self) -> &Option<String>
pub fn get_key_material(&self) -> &Option<String>
Parameter information for generating a wrapped key using TR-31 or TR-34 skey exchange method.
sourcepub fn key_check_value(self, input: impl Into<String>) -> Self
pub fn key_check_value(self, input: impl Into<String>) -> Self
The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that a key has changed.
sourcepub fn set_key_check_value(self, input: Option<String>) -> Self
pub fn set_key_check_value(self, input: Option<String>) -> Self
The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that a key has changed.
sourcepub fn get_key_check_value(&self) -> &Option<String>
pub fn get_key_check_value(&self) -> &Option<String>
The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that a key has changed.
sourcepub fn key_check_value_algorithm(self, input: KeyCheckValueAlgorithm) -> Self
pub fn key_check_value_algorithm(self, input: KeyCheckValueAlgorithm) -> Self
The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity.
For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.
sourcepub fn set_key_check_value_algorithm(
self,
input: Option<KeyCheckValueAlgorithm>
) -> Self
pub fn set_key_check_value_algorithm( self, input: Option<KeyCheckValueAlgorithm> ) -> Self
The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity.
For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.
sourcepub fn get_key_check_value_algorithm(&self) -> &Option<KeyCheckValueAlgorithm>
pub fn get_key_check_value_algorithm(&self) -> &Option<KeyCheckValueAlgorithm>
The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity.
For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.
sourcepub fn build(self) -> Result<WrappedKey, BuildError>
pub fn build(self) -> Result<WrappedKey, BuildError>
Consumes the builder and constructs a WrappedKey
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for WrappedKeyBuilder
impl Clone for WrappedKeyBuilder
source§fn clone(&self) -> WrappedKeyBuilder
fn clone(&self) -> WrappedKeyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WrappedKeyBuilder
impl Debug for WrappedKeyBuilder
source§impl Default for WrappedKeyBuilder
impl Default for WrappedKeyBuilder
source§fn default() -> WrappedKeyBuilder
fn default() -> WrappedKeyBuilder
source§impl PartialEq for WrappedKeyBuilder
impl PartialEq for WrappedKeyBuilder
source§fn eq(&self, other: &WrappedKeyBuilder) -> bool
fn eq(&self, other: &WrappedKeyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.