mirror of
https://github.com/bitwarden/mobile
synced 2025-12-12 22:33:25 +00:00
* PM-5154 Implement iOS passkey add login * PM-5154 Added Username to Create new login for passkey, for this the param was changed to the Fido2ConfirmNewCredentialParams object so we have access to the proper values. Also added back RpId to the params to have access to it when creating the vault item. Finally added loading to saving the passkey as new login
40 lines
2.1 KiB
C#
40 lines
2.1 KiB
C#
using Bit.Core.Enums;
|
|
using Bit.Core.Models.Data;
|
|
using Bit.Core.Models.Domain;
|
|
using Bit.Core.Models.View;
|
|
|
|
namespace Bit.Core.Abstractions
|
|
{
|
|
public interface ICipherService
|
|
{
|
|
Task ClearAsync(string userId);
|
|
Task ClearCacheAsync();
|
|
Task DeleteAsync(List<string> ids);
|
|
Task DeleteAsync(string id);
|
|
Task DeleteAttachmentAsync(string id, string attachmentId);
|
|
Task DeleteAttachmentWithServerAsync(string id, string attachmentId);
|
|
Task DeleteWithServerAsync(string id);
|
|
Task<Cipher> EncryptAsync(CipherView model, SymmetricCryptoKey key = null, Cipher originalCipher = null);
|
|
Task<List<Cipher>> GetAllAsync();
|
|
Task<List<CipherView>> GetAllDecryptedAsync(Func<Cipher, bool> filter = null);
|
|
Task<Tuple<List<CipherView>, List<CipherView>, List<CipherView>>> GetAllDecryptedByUrlAsync(string url,
|
|
List<CipherType> includeOtherTypes = null);
|
|
Task<List<CipherView>> GetAllDecryptedForGroupingAsync(string groupingId, bool folder = true);
|
|
Task<List<CipherView>> GetAllDecryptedForUrlAsync(string url);
|
|
Task<Cipher> GetAsync(string id);
|
|
Task<CipherView> GetLastUsedForUrlAsync(string url);
|
|
Task ReplaceAsync(Dictionary<string, CipherData> ciphers);
|
|
Task<Cipher> SaveAttachmentRawWithServerAsync(Cipher cipher, CipherView cipherView, string filename, byte[] data);
|
|
Task SaveCollectionsWithServerAsync(Cipher cipher);
|
|
Task SaveWithServerAsync(Cipher cipher);
|
|
Task ShareWithServerAsync(CipherView cipher, string organizationId, HashSet<string> collectionIds);
|
|
Task UpdateLastUsedDateAsync(string id);
|
|
Task UpsertAsync(CipherData cipher);
|
|
Task UpsertAsync(List<CipherData> cipher);
|
|
Task<byte[]> DownloadAndDecryptAttachmentAsync(string cipherId, AttachmentView attachment, string organizationId);
|
|
Task SoftDeleteWithServerAsync(string id);
|
|
Task RestoreWithServerAsync(string id);
|
|
Task<string> CreateNewLoginForPasskeyAsync(Fido2ConfirmNewCredentialParams newPasskeyParams);
|
|
}
|
|
}
|