#[non_exhaustive]pub struct DukptDerivationAttributesBuilder { /* private fields */ }
Expand description
A builder for DukptDerivationAttributes
.
Implementations§
source§impl DukptDerivationAttributesBuilder
impl DukptDerivationAttributesBuilder
sourcepub fn key_serial_number(self, input: impl Into<String>) -> Self
pub fn key_serial_number(self, input: impl Into<String>) -> Self
The unique identifier known as Key Serial Number (KSN) that comes from an encrypting device using DUKPT encryption method. The KSN is derived from the encrypting device unique identifier and an internal transaction counter.
sourcepub fn set_key_serial_number(self, input: Option<String>) -> Self
pub fn set_key_serial_number(self, input: Option<String>) -> Self
The unique identifier known as Key Serial Number (KSN) that comes from an encrypting device using DUKPT encryption method. The KSN is derived from the encrypting device unique identifier and an internal transaction counter.
sourcepub fn get_key_serial_number(&self) -> &Option<String>
pub fn get_key_serial_number(&self) -> &Option<String>
The unique identifier known as Key Serial Number (KSN) that comes from an encrypting device using DUKPT encryption method. The KSN is derived from the encrypting device unique identifier and an internal transaction counter.
sourcepub fn dukpt_key_derivation_type(self, input: DukptDerivationType) -> Self
pub fn dukpt_key_derivation_type(self, input: DukptDerivationType) -> Self
The key type derived using DUKPT from a Base Derivation Key (BDK) and Key Serial Number (KSN). This must be less than or equal to the strength of the BDK. For example, you can't use AES_128
as a derivation type for a BDK of AES_128
or TDES_2KEY
sourcepub fn set_dukpt_key_derivation_type(
self,
input: Option<DukptDerivationType>
) -> Self
pub fn set_dukpt_key_derivation_type( self, input: Option<DukptDerivationType> ) -> Self
The key type derived using DUKPT from a Base Derivation Key (BDK) and Key Serial Number (KSN). This must be less than or equal to the strength of the BDK. For example, you can't use AES_128
as a derivation type for a BDK of AES_128
or TDES_2KEY
sourcepub fn get_dukpt_key_derivation_type(&self) -> &Option<DukptDerivationType>
pub fn get_dukpt_key_derivation_type(&self) -> &Option<DukptDerivationType>
The key type derived using DUKPT from a Base Derivation Key (BDK) and Key Serial Number (KSN). This must be less than or equal to the strength of the BDK. For example, you can't use AES_128
as a derivation type for a BDK of AES_128
or TDES_2KEY
sourcepub fn dukpt_key_variant(self, input: DukptKeyVariant) -> Self
pub fn dukpt_key_variant(self, input: DukptKeyVariant) -> Self
The type of use of DUKPT, which can be for incoming data decryption, outgoing data encryption, or both.
sourcepub fn set_dukpt_key_variant(self, input: Option<DukptKeyVariant>) -> Self
pub fn set_dukpt_key_variant(self, input: Option<DukptKeyVariant>) -> Self
The type of use of DUKPT, which can be for incoming data decryption, outgoing data encryption, or both.
sourcepub fn get_dukpt_key_variant(&self) -> &Option<DukptKeyVariant>
pub fn get_dukpt_key_variant(&self) -> &Option<DukptKeyVariant>
The type of use of DUKPT, which can be for incoming data decryption, outgoing data encryption, or both.
sourcepub fn build(self) -> DukptDerivationAttributes
pub fn build(self) -> DukptDerivationAttributes
Consumes the builder and constructs a DukptDerivationAttributes
.
Trait Implementations§
source§impl Clone for DukptDerivationAttributesBuilder
impl Clone for DukptDerivationAttributesBuilder
source§fn clone(&self) -> DukptDerivationAttributesBuilder
fn clone(&self) -> DukptDerivationAttributesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DukptDerivationAttributesBuilder
impl Default for DukptDerivationAttributesBuilder
source§fn default() -> DukptDerivationAttributesBuilder
fn default() -> DukptDerivationAttributesBuilder
source§impl PartialEq<DukptDerivationAttributesBuilder> for DukptDerivationAttributesBuilder
impl PartialEq<DukptDerivationAttributesBuilder> for DukptDerivationAttributesBuilder
source§fn eq(&self, other: &DukptDerivationAttributesBuilder) -> bool
fn eq(&self, other: &DukptDerivationAttributesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.