pub struct AarqBuilder {
application_context: u8,
calling_ap_title: Option<Vec<u8>>,
mechanism_name: Option<u8>,
calling_authentication_value: Option<Vec<u8>>,
user_information: Vec<u8>,
}Expand description
Builder for AARQ construction with a fluent API.
Fields§
§application_context: u8§calling_ap_title: Option<Vec<u8>>§mechanism_name: Option<u8>§calling_authentication_value: Option<Vec<u8>>§user_information: Vec<u8>Implementations§
Source§impl AarqBuilder
impl AarqBuilder
Sourcepub fn application_context(self, ctx: u8) -> Self
pub fn application_context(self, ctx: u8) -> Self
Sets the application context (LN, SN, LN_CIPHERING, SN_CIPHERING).
Sourcepub fn calling_ap_title(self, title: Vec<u8>) -> Self
pub fn calling_ap_title(self, title: Vec<u8>) -> Self
Sets the calling AP title (client system title) for ciphering.
Sourcepub fn mechanism(self, mech: u8) -> Self
pub fn mechanism(self, mech: u8) -> Self
Sets the authentication mechanism (LLS, HLS_MD5, HLS_SHA1, HLS_GMAC).
Sourcepub fn authentication_value(self, value: Vec<u8>) -> Self
pub fn authentication_value(self, value: Vec<u8>) -> Self
Sets the calling authentication value (LLS password or HLS challenge).
Sourcepub fn user_information(self, info: Vec<u8>) -> Self
pub fn user_information(self, info: Vec<u8>) -> Self
Sets the user information (InitiateRequest APDU).
Sourcepub fn build(self) -> AssociationRequest
pub fn build(self) -> AssociationRequest
Builds the AARQ request.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AarqBuilder
impl RefUnwindSafe for AarqBuilder
impl Send for AarqBuilder
impl Sync for AarqBuilder
impl Unpin for AarqBuilder
impl UnsafeUnpin for AarqBuilder
impl UnwindSafe for AarqBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more