get rid of direct query for blob from backup operation

This commit is contained in:
Vincent Breitmoser committed 2017-02-24 18:04:55 +01:00
1 parent c2b9af077a
commit 623964701b
2 files changed
+31 -21

No files matched your search

@@ -238,6 +238,16 @@ public class DatabaseInteractor {
return mContentResolver;
}
public byte[] getPublicKeyRingData(long masterKeyId) throws NotFoundException {
return (byte[]) getGenericData(KeychainContract.KeyRingData.buildPublicKeyRingUri(masterKeyId),
KeyRingData.KEY_RING_DATA, FIELD_TYPE_BLOB);
}
public byte[] getSecretKeyRingData(long masterKeyId) throws NotFoundException {
return (byte[]) getGenericData(KeychainContract.KeyRingData.buildSecretKeyRingUri(masterKeyId),
KeyRingData.KEY_RING_DATA, FIELD_TYPE_BLOB);
}
public static class NotFoundException extends Exception {
public NotFoundException() {
}