pub struct AuthClient {}Implementations§
Source§impl AuthClient
impl AuthClient
Sourcepub fn registration_start_req(
account: &[u8],
password: &[u8],
) -> Result<(Vec<u8>, Bytes), Box<dyn Error>>
pub fn registration_start_req( account: &[u8], password: &[u8], ) -> Result<(Vec<u8>, Bytes), Box<dyn Error>>
account_len.account.client_start (client_state, payload)
Sourcepub fn registration_finish_req(
account: &[u8],
password: &[u8],
client_state: &[u8],
server_message: &[u8],
) -> Result<([u8; 32], Bytes), Box<dyn Error>>
pub fn registration_finish_req( account: &[u8], password: &[u8], client_state: &[u8], server_message: &[u8], ) -> Result<([u8; 32], Bytes), Box<dyn Error>>
account_len.account.client_finish payload
pub fn decrypt_totp_mfa( response: Bytes, private_key: [u8; 32], app_name: String, account: String, ) -> Result<TOTP, Box<dyn Error>>
pub fn decrypt_totp_mfa_code( response: Bytes, private_key: [u8; 32], app_name: String, account: String, ) -> Result<String, Box<dyn Error>>
pub fn decrypt_totp_mfa_to_qr_svg( response: Bytes, private_key: [u8; 32], app_name: String, account: String, ) -> Result<String, Box<dyn Error>>
Sourcepub fn login_start_req(
account: &[u8],
password: &[u8],
) -> Result<(Vec<u8>, Bytes), Box<dyn Error>>
pub fn login_start_req( account: &[u8], password: &[u8], ) -> Result<(Vec<u8>, Bytes), Box<dyn Error>>
account_len.account.client_start (client_state, payload)
Sourcepub fn login_finish_req(
account: &[u8],
password: &[u8],
mfa_code: String,
client_state: &[u8],
server_message: &[u8],
) -> Result<(Bytes, Vec<u8>), Box<dyn Error>>
pub fn login_finish_req( account: &[u8], password: &[u8], mfa_code: String, client_state: &[u8], server_message: &[u8], ) -> Result<(Bytes, Vec<u8>), Box<dyn Error>>
account_len.account.client_finish payload
pub fn decrypt_token( response: Bytes, session_key: &[u8], ) -> Result<Bytes, Box<dyn Error>>
Sourcepub fn access_get_req(refresh_token: &[u8]) -> Bytes
pub fn access_get_req(refresh_token: &[u8]) -> Bytes
refresh_token
Auto Trait Implementations§
impl Freeze for AuthClient
impl RefUnwindSafe for AuthClient
impl Send for AuthClient
impl Sync for AuthClient
impl Unpin for AuthClient
impl UnwindSafe for AuthClient
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