pub struct PendingAppAuth { /* private fields */ }Expand description
One first-auth request. Consuming completion prevents accidental reuse after success, malformed data or rejection. The host must retain uncertain intent outcomes separately instead of automatically preparing another attempt.
Implementations§
Source§impl PendingAppAuth
impl PendingAppAuth
Sourcepub fn new(authority: AppAuthority, own_device: [u8; 32]) -> Result<Self>
pub fn new(authority: AppAuthority, own_device: [u8; 32]) -> Result<Self>
Device identity is a fresh, independent 32-byte value supplied by a secure host RNG. It is not the account’s ordinary host device ID.
Sourcepub fn request_body(&self) -> Result<Vec<u8>>
pub fn request_body(&self) -> Result<Vec<u8>>
Inner CGI7994 body, to place in the host CommonRequest’s field2.
Sourcepub fn complete(
self,
authenticated_common: &[u8],
current: AppAuthority,
) -> Result<AppSession>
pub fn complete( self, authenticated_common: &[u8], current: AppAuthority, ) -> Result<AppSession>
The input must be the corresponding host-authenticated CommonResponse. This selected implementation supports the explicit no-app-encryption branch only. It never falls back from failed encrypted processing.
Auto Trait Implementations§
impl Freeze for PendingAppAuth
impl RefUnwindSafe for PendingAppAuth
impl Send for PendingAppAuth
impl Sync for PendingAppAuth
impl Unpin for PendingAppAuth
impl UnsafeUnpin for PendingAppAuth
impl UnwindSafe for PendingAppAuth
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