Integrate Android biometrics with the shared Rust lease (#98)
This commit is contained in:
1 parent
5c933a99a3
commit
647dc1bb4b
21 files changed
+1473
-118
No files matched your search
@@ -1762,6 +1762,27 @@ impl MobileAuthentication {
|
||||
.map_err(Into::into)
|
||||
}
|
||||
|
||||
pub fn enroll_biometric_unlock(
|
||||
&self,
|
||||
passphrase: String,
|
||||
) -> Result<MobileAuthenticationState, MobileAuthenticationFfiError> {
|
||||
self.authentication
|
||||
.enroll_biometric_unlock(ironstorage::repository::SecretBytes::new(
|
||||
passphrase.into_bytes(),
|
||||
))
|
||||
.map(Into::into)
|
||||
.map_err(Into::into)
|
||||
}
|
||||
|
||||
pub fn restore_biometric_lease(
|
||||
&self,
|
||||
) -> Result<MobileAuthenticationState, MobileAuthenticationFfiError> {
|
||||
self.authentication
|
||||
.restore_biometric_lease()
|
||||
.map(Into::into)
|
||||
.map_err(Into::into)
|
||||
}
|
||||
|
||||
pub fn touch_user_activity(&self) -> Result<(), MobileAuthenticationFfiError> {
|
||||
self.authentication
|
||||
.touch_user_activity()
|
||||
|
||||
Reference in new issue
Block a user