Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dominik Schürmann
committed
Mar 2, 2015
1 parent
a14062a
commit 9259075
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="org.sufficientlysecure.keychain.api" | ||
android:versionCode="1" | ||
android:versionName="1.0" > | ||
|
||
<uses-sdk | ||
android:minSdkVersion="9" | ||
android:targetSdkVersion="19" /> | ||
|
||
<application/> | ||
|
||
</manifest> |
47 changes: 47 additions & 0 deletions
47
src/main/java/org/sufficientlysecure/keychain/api/OpenKeychainIntents.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* Copyright (C) 2014 Dominik Schürmann <dominik@dominikschuermann.de> | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.sufficientlysecure.keychain.api; | ||
|
||
public class OpenKeychainIntents { | ||
private static final String PACKAGE_NAME = "org.sufficientlysecure.keychain"; | ||
|
||
// prefix packagename for exported Intents | ||
// as described in http://developer.android.com/guide/components/intents-filters.html | ||
private static final String INTENT_PREFIX = PACKAGE_NAME + ".action."; | ||
private static final String EXTRA_PREFIX = PACKAGE_NAME + "."; | ||
|
||
public static final String ENCRYPT_TEXT = INTENT_PREFIX + "ENCRYPT_TEXT"; | ||
public static final String ENCRYPT_EXTRA_TEXT = EXTRA_PREFIX + "EXTRA_TEXT"; // String | ||
|
||
public static final String ENCRYPT_DATA = INTENT_PREFIX + "ENCRYPT_DATA"; | ||
public static final String ENCRYPT_EXTRA_ASCII_ARMOR = EXTRA_PREFIX + "EXTRA_ASCII_ARMOR"; // boolean | ||
|
||
public static final String DECRYPT_TEXT = INTENT_PREFIX + "DECRYPT_TEXT"; | ||
public static final String DECRYPT_EXTRA_TEXT = EXTRA_PREFIX + "EXTRA_TEXT"; // String | ||
|
||
public static final String DECRYPT_DATA = INTENT_PREFIX + "DECRYPT_DATA"; | ||
|
||
public static final String IMPORT_KEY = INTENT_PREFIX + "IMPORT_KEY"; | ||
public static final String IMPORT_EXTRA_KEY_EXTRA_KEY_BYTES = EXTRA_PREFIX + "EXTRA_KEY_BYTES"; // byte[] | ||
|
||
public static final String IMPORT_KEY_FROM_KEYSERVER = INTENT_PREFIX + "IMPORT_KEY_FROM_KEYSERVER"; | ||
public static final String IMPORT_KEY_FROM_KEYSERVER_EXTRA_QUERY = EXTRA_PREFIX + "EXTRA_QUERY"; // String | ||
public static final String IMPORT_KEY_FROM_KEYSERVER_EXTRA_FINGERPRINT = EXTRA_PREFIX + "EXTRA_FINGERPRINT"; // String | ||
|
||
public static final String IMPORT_KEY_FROM_QR_CODE = INTENT_PREFIX + "IMPORT_KEY_FROM_QR_CODE"; | ||
|
||
} |