mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-24 07:58:50 -05:00
rename extra of import
This commit is contained in:
parent
e7a4297651
commit
56e09b0550
@ -59,7 +59,7 @@ public class ImportKeysActivity extends SherlockFragmentActivity {
|
|||||||
+ "IMPORT_KEY_FROM_NFC";
|
+ "IMPORT_KEY_FROM_NFC";
|
||||||
|
|
||||||
// only used by IMPORT
|
// only used by IMPORT
|
||||||
public static final String EXTRA_KEYRING_BYTES = "keyring_bytes";
|
public static final String EXTRA_KEY_BYTES = "key_bytes";
|
||||||
|
|
||||||
// TODO: import keys from server
|
// TODO: import keys from server
|
||||||
// public static final String EXTRA_KEY_ID = "keyId";
|
// public static final String EXTRA_KEY_ID = "keyId";
|
||||||
@ -162,8 +162,8 @@ public class ImportKeysActivity extends SherlockFragmentActivity {
|
|||||||
if ("file".equals(intent.getScheme()) && intent.getDataString() != null) {
|
if ("file".equals(intent.getScheme()) && intent.getDataString() != null) {
|
||||||
mImportFilename = intent.getData().getPath();
|
mImportFilename = intent.getData().getPath();
|
||||||
mImportData = null;
|
mImportData = null;
|
||||||
} else if (extras.containsKey(EXTRA_KEYRING_BYTES)) {
|
} else if (extras.containsKey(EXTRA_KEY_BYTES)) {
|
||||||
mImportData = intent.getByteArrayExtra(EXTRA_KEYRING_BYTES);
|
mImportData = intent.getByteArrayExtra(EXTRA_KEY_BYTES);
|
||||||
mImportFilename = null;
|
mImportFilename = null;
|
||||||
}
|
}
|
||||||
loadKeyListFragment();
|
loadKeyListFragment();
|
||||||
|
@ -228,7 +228,7 @@ public class KeyServerQueryActivity extends SherlockFragmentActivity {
|
|||||||
Intent intent = new Intent(KeyServerQueryActivity.this,
|
Intent intent = new Intent(KeyServerQueryActivity.this,
|
||||||
ImportKeysActivity.class);
|
ImportKeysActivity.class);
|
||||||
intent.setAction(ImportKeysActivity.ACTION_IMPORT_KEY);
|
intent.setAction(ImportKeysActivity.ACTION_IMPORT_KEY);
|
||||||
intent.putExtra(ImportKeysActivity.EXTRA_KEYRING_BYTES, mKeyData.getBytes());
|
intent.putExtra(ImportKeysActivity.EXTRA_KEY_BYTES, mKeyData.getBytes());
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -116,7 +116,7 @@ public class ShareNfcBeamActivity extends SherlockFragmentActivity implements
|
|||||||
|
|
||||||
Intent importIntent = new Intent(this, ImportKeysActivity.class);
|
Intent importIntent = new Intent(this, ImportKeysActivity.class);
|
||||||
importIntent.setAction(ImportKeysActivity.ACTION_IMPORT_KEY);
|
importIntent.setAction(ImportKeysActivity.ACTION_IMPORT_KEY);
|
||||||
importIntent.putExtra(ImportKeysActivity.EXTRA_KEYRING_BYTES, receivedKeyringBytes);
|
importIntent.putExtra(ImportKeysActivity.EXTRA_KEY_BYTES, receivedKeyringBytes);
|
||||||
|
|
||||||
finish();
|
finish();
|
||||||
|
|
||||||
|
@ -67,12 +67,12 @@ OpenPGP Keychain specific Intent actions:
|
|||||||
* ``org.sufficientlysecure.keychain.action.DECRYPT_FILE``
|
* ``org.sufficientlysecure.keychain.action.DECRYPT_FILE``
|
||||||
* Include data ``Uri`` (``intent.setData()``) pointing to a file or content provider
|
* Include data ``Uri`` (``intent.setData()``) pointing to a file or content provider
|
||||||
* ``org.sufficientlysecure.keychain.action.IMPORT_KEY``
|
* ``org.sufficientlysecure.keychain.action.IMPORT_KEY``
|
||||||
* Extras: ``keyring_bytes`` (type: ``byte[]``)
|
* Extras: ``key_bytes`` (type: ``byte[]``)
|
||||||
* or Uri in data with file schema
|
* or Uri in data with file schema
|
||||||
* ``org.sufficientlysecure.keychain.action.IMPORT_KEY_FROM_QR_CODE``
|
* ``org.sufficientlysecure.keychain.action.IMPORT_KEY_FROM_QR_CODE``
|
||||||
* without extras starts Barcode Scanner to get QR Code
|
* without extras starts Barcode Scanner to get QR Code
|
||||||
|
|
||||||
## Remote Serive API
|
## Remote Service API
|
||||||
To do asyncronous fast encryption/decryption/sign/verify operations bind to the remote service.
|
To do asyncronous fast encryption/decryption/sign/verify operations bind to the remote service.
|
||||||
The API Demo contains all required AIDL files and a demo activity.
|
The API Demo contains all required AIDL files and a demo activity.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user