mirror of
https://github.com/bitwarden/android.git
synced 2025-03-16 19:28:44 +03:00
Minor formating for the VaultSdkSource (#3688)
This commit is contained in:
parent
b15371bfce
commit
af82261fba
1 changed files with 18 additions and 17 deletions
|
@ -92,7 +92,7 @@ class VaultSdkSourceImpl(
|
|||
runCatching {
|
||||
getClient(userId = userId)
|
||||
.auth()
|
||||
.approveAuthRequest(publicKey)
|
||||
.approveAuthRequest(publicKey = publicKey)
|
||||
}
|
||||
|
||||
override suspend fun getResetPasswordKey(
|
||||
|
@ -119,7 +119,7 @@ class VaultSdkSourceImpl(
|
|||
runCatching {
|
||||
getClient(userId = userId)
|
||||
.platform()
|
||||
.userFingerprint(userId)
|
||||
.userFingerprint(fingerprintMaterial = userId)
|
||||
}
|
||||
|
||||
override suspend fun initializeCrypto(
|
||||
|
@ -161,7 +161,7 @@ class VaultSdkSourceImpl(
|
|||
runCatching {
|
||||
getClient(userId = userId)
|
||||
.sends()
|
||||
.encrypt(sendView)
|
||||
.encrypt(send = sendView)
|
||||
}
|
||||
|
||||
override suspend fun encryptBuffer(
|
||||
|
@ -222,7 +222,7 @@ class VaultSdkSourceImpl(
|
|||
getClient(userId = userId)
|
||||
.vault()
|
||||
.ciphers()
|
||||
.encrypt(cipherView)
|
||||
.encrypt(cipherView = cipherView)
|
||||
}
|
||||
|
||||
override suspend fun decryptCipher(
|
||||
|
@ -233,7 +233,7 @@ class VaultSdkSourceImpl(
|
|||
getClient(userId = userId)
|
||||
.vault()
|
||||
.ciphers()
|
||||
.decrypt(cipher)
|
||||
.decrypt(cipher = cipher)
|
||||
}
|
||||
|
||||
override suspend fun decryptCipherListCollection(
|
||||
|
@ -242,8 +242,9 @@ class VaultSdkSourceImpl(
|
|||
): Result<List<CipherListView>> =
|
||||
runCatching {
|
||||
getClient(userId = userId)
|
||||
.vault().ciphers()
|
||||
.decryptList(cipherList)
|
||||
.vault()
|
||||
.ciphers()
|
||||
.decryptList(ciphers = cipherList)
|
||||
}
|
||||
|
||||
override suspend fun decryptCipherList(
|
||||
|
@ -265,7 +266,7 @@ class VaultSdkSourceImpl(
|
|||
getClient(userId = userId)
|
||||
.vault()
|
||||
.collections()
|
||||
.decrypt(collection)
|
||||
.decrypt(collection = collection)
|
||||
}
|
||||
|
||||
override suspend fun decryptCollectionList(
|
||||
|
@ -276,7 +277,7 @@ class VaultSdkSourceImpl(
|
|||
getClient(userId = userId)
|
||||
.vault()
|
||||
.collections()
|
||||
.decryptList(collectionList)
|
||||
.decryptList(collections = collectionList)
|
||||
}
|
||||
|
||||
override suspend fun decryptSend(
|
||||
|
@ -286,7 +287,7 @@ class VaultSdkSourceImpl(
|
|||
runCatching {
|
||||
getClient(userId = userId)
|
||||
.sends()
|
||||
.decrypt(send)
|
||||
.decrypt(send = send)
|
||||
}
|
||||
|
||||
override suspend fun decryptSendList(
|
||||
|
@ -308,7 +309,7 @@ class VaultSdkSourceImpl(
|
|||
getClient(userId = userId)
|
||||
.vault()
|
||||
.folders()
|
||||
.encrypt(folder)
|
||||
.encrypt(folder = folder)
|
||||
}
|
||||
|
||||
override suspend fun decryptFolder(
|
||||
|
@ -319,7 +320,7 @@ class VaultSdkSourceImpl(
|
|||
getClient(userId = userId)
|
||||
.vault()
|
||||
.folders()
|
||||
.decrypt(folder)
|
||||
.decrypt(folder = folder)
|
||||
}
|
||||
|
||||
override suspend fun decryptFolderList(
|
||||
|
@ -330,7 +331,7 @@ class VaultSdkSourceImpl(
|
|||
getClient(userId = userId)
|
||||
.vault()
|
||||
.folders()
|
||||
.decryptList(folderList)
|
||||
.decryptList(folders = folderList)
|
||||
}
|
||||
|
||||
override suspend fun decryptFile(
|
||||
|
@ -359,7 +360,7 @@ class VaultSdkSourceImpl(
|
|||
getClient(userId = userId)
|
||||
.vault()
|
||||
.passwordHistory()
|
||||
.encrypt(passwordHistory)
|
||||
.encrypt(passwordHistory = passwordHistory)
|
||||
}
|
||||
|
||||
override suspend fun decryptPasswordHistoryList(
|
||||
|
@ -369,7 +370,7 @@ class VaultSdkSourceImpl(
|
|||
getClient(userId = userId)
|
||||
.vault()
|
||||
.passwordHistory()
|
||||
.decryptList(passwordHistoryList)
|
||||
.decryptList(list = passwordHistoryList)
|
||||
}
|
||||
|
||||
override suspend fun generateTotp(
|
||||
|
@ -428,7 +429,7 @@ class VaultSdkSourceImpl(
|
|||
): Result<UpdatePasswordResponse> = runCatching {
|
||||
getClient(userId = userId)
|
||||
.crypto()
|
||||
.updatePassword(newPassword)
|
||||
.updatePassword(newPassword = newPassword)
|
||||
}
|
||||
|
||||
override suspend fun exportVaultDataToString(
|
||||
|
@ -519,7 +520,7 @@ class VaultSdkSourceImpl(
|
|||
userId: String,
|
||||
vararg cipherViews: CipherView,
|
||||
): Result<List<Fido2CredentialAutofillView>> = runCatching {
|
||||
val fido2 = getClient(userId).platform().fido2()
|
||||
val fido2 = getClient(userId = userId).platform().fido2()
|
||||
cipherViews.flatMap { fido2.decryptFido2AutofillCredentials(cipherView = it) }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue