Added saving S/MIME public keys

This commit is contained in:
M66B
2022-02-05 19:42:18 +01:00
parent 8de02847eb
commit e7ee3efcdb
3 changed files with 80 additions and 3 deletions

View File

@@ -35,6 +35,10 @@ public interface DaoCertificate {
" ORDER BY intermediate, email, subject")
LiveData<List<EntityCertificate>> liveCertificates();
@Query("SELECT * FROM certificate" +
" WHERE id = :id")
EntityCertificate getCertificate(long id);
@Query("SELECT * FROM certificate" +
" WHERE fingerprint = :fingerprint" +
" AND email = :email COLLATE NOCASE")