#[non_exhaustive]pub struct DukptAttributesBuilder { /* private fields */ }
Expand description
A builder for DukptAttributes
.
Implementations§
source§impl DukptAttributesBuilder
impl DukptAttributesBuilder
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_derivation_type(self, input: DukptDerivationType) -> Self
pub fn dukpt_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_derivation_type(
self,
input: Option<DukptDerivationType>
) -> Self
pub fn set_dukpt_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_derivation_type(&self) -> &Option<DukptDerivationType>
pub fn get_dukpt_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 build(self) -> DukptAttributes
pub fn build(self) -> DukptAttributes
Consumes the builder and constructs a DukptAttributes
.
Trait Implementations§
source§impl Clone for DukptAttributesBuilder
impl Clone for DukptAttributesBuilder
source§fn clone(&self) -> DukptAttributesBuilder
fn clone(&self) -> DukptAttributesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DukptAttributesBuilder
impl Debug for DukptAttributesBuilder
source§impl Default for DukptAttributesBuilder
impl Default for DukptAttributesBuilder
source§fn default() -> DukptAttributesBuilder
fn default() -> DukptAttributesBuilder
source§impl PartialEq<DukptAttributesBuilder> for DukptAttributesBuilder
impl PartialEq<DukptAttributesBuilder> for DukptAttributesBuilder
source§fn eq(&self, other: &DukptAttributesBuilder) -> bool
fn eq(&self, other: &DukptAttributesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.