Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7cf8c23 authored by Kenny Root's avatar Kenny Root
Browse files

keystore: remove old APIs

Remove the APIs that don't specify the flags so callers know what
they're getting.

Bug: 8122243
Change-Id: Ifaef6fb1d16010237c01f9d11f2053bb6b3980c0
parent b2c0ff64
Loading
Loading
Loading
Loading
+0 −24
Original line number Diff line number Diff line
@@ -103,14 +103,6 @@ public class KeyStore {
        }
    }

    public boolean put(String key, byte[] value, int uid) {
        return put(key, value, uid, FLAG_ENCRYPTED);
    }

    public boolean put(String key, byte[] value) {
        return put(key, value, UID_SELF);
    }

    public boolean delete(String key, int uid) {
        try {
            return mBinder.del(key, uid) == NO_ERROR;
@@ -205,14 +197,6 @@ public class KeyStore {
        }
    }

    public boolean generate(String key, int uid) {
        return generate(key, uid, FLAG_ENCRYPTED);
    }

    public boolean generate(String key) {
        return generate(key, UID_SELF);
    }

    public boolean importKey(String keyName, byte[] key, int uid, int flags) {
        try {
            return mBinder.import_key(keyName, key, uid, flags) == NO_ERROR;
@@ -222,14 +206,6 @@ public class KeyStore {
        }
    }

    public boolean importKey(String keyName, byte[] key, int uid) {
        return importKey(keyName, key, uid, FLAG_ENCRYPTED);
    }

    public boolean importKey(String keyName, byte[] key) {
        return importKey(keyName, key, UID_SELF);
    }

    public byte[] getPubkey(String key) {
        try {
            return mBinder.get_pubkey(key);