mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
21 lines
594 B
Kotlin
21 lines
594 B
Kotlin
package com.kunzisoft.keepass.biometric
|
|
|
|
import androidx.annotation.StringRes
|
|
import javax.crypto.Cipher
|
|
|
|
data class DeviceUnlockCryptoPrompt(
|
|
var type: DeviceUnlockCryptoPromptType,
|
|
var cipher: Cipher,
|
|
@StringRes var titleId: Int,
|
|
@StringRes var descriptionId: Int? = null,
|
|
var isDeviceCredentialOperation: Boolean,
|
|
var isBiometricOperation: Boolean
|
|
) {
|
|
fun isOldCredentialOperation(): Boolean {
|
|
return !isBiometricOperation && isDeviceCredentialOperation
|
|
}
|
|
}
|
|
|
|
enum class DeviceUnlockCryptoPromptType {
|
|
CREDENTIAL_ENCRYPTION, CREDENTIAL_DECRYPTION
|
|
} |