Pin : fix tests after rename
This commit is contained in:
parent
0e00797e67
commit
0bc992c1ba
3 changed files with 21 additions and 21 deletions
|
|
@ -37,7 +37,7 @@ class DefaultPinCodeManager @Inject constructor(
|
|||
return pinCodeStore.hasPinCode()
|
||||
}
|
||||
|
||||
override suspend fun setupPinCode(pinCode: String) {
|
||||
override suspend fun createPinCode(pinCode: String) {
|
||||
val secretKey = secretKeyProvider.getOrCreateKey(SECRET_KEY_ALIAS)
|
||||
val encryptedPinCode = encryptionDecryptionService.encrypt(secretKey, pinCode.toByteArray()).toBase64()
|
||||
pinCodeStore.saveEncryptedPinCode(encryptedPinCode)
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ interface PinCodeManager {
|
|||
* Creates a new encrypted pin code.
|
||||
* @param pinCode the clear pin code to create
|
||||
*/
|
||||
suspend fun setupPinCode(pinCode: String)
|
||||
suspend fun createPinCode(pinCode: String)
|
||||
|
||||
/**
|
||||
* @return true if the pin code is correct.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue