summaryrefslogtreecommitdiffstats
path: root/keystore
diff options
context:
space:
mode:
authorHung-ying Tyan <tyanh@google.com>2009-07-31 20:34:03 +0800
committerHung-ying Tyan <tyanh@google.com>2009-08-14 18:35:44 +0800
commit20a1156c6fd30f3ec1336894d6ae7e00298ad65b (patch)
treefa4fcc5c2c3d03272493eb572a0d8fd8ed1be24b /keystore
parenta31deaf4a960058e533da35d6229f7aa8d4f00c1 (diff)
downloadframeworks_base-20a1156c6fd30f3ec1336894d6ae7e00298ad65b.zip
frameworks_base-20a1156c6fd30f3ec1336894d6ae7e00298ad65b.tar.gz
frameworks_base-20a1156c6fd30f3ec1336894d6ae7e00298ad65b.tar.bz2
Make certificate-handling-related constants public
Diffstat (limited to 'keystore')
-rw-r--r--keystore/java/android/security/CertTool.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/keystore/java/android/security/CertTool.java b/keystore/java/android/security/CertTool.java
index 989432a..d1174ad 100644
--- a/keystore/java/android/security/CertTool.java
+++ b/keystore/java/android/security/CertTool.java
@@ -42,6 +42,15 @@ public class CertTool {
System.loadLibrary("certtool_jni");
}
+ /** Keystore namespace for CA certificates. */
+ public static final String CA_CERTIFICATE = "CACERT";
+
+ /** Keystore namespace for user certificates. */
+ public static final String USER_CERTIFICATE = "USRCERT";
+
+ /** Keystore namespace for user private keys. */
+ public static final String USER_KEY = "USRKEY";
+
public static final String ACTION_ADD_CREDENTIAL =
"android.security.ADD_CREDENTIAL";
public static final String KEY_TYPE_NAME = "typeName";
@@ -60,10 +69,6 @@ public class CertTool {
private static final String ISSUER_NAME = "Issuer Name:";
private static final String DISTINCT_NAME = "Distinct Name:";
- private static final String CA_CERTIFICATE = "CACERT";
- private static final String USER_CERTIFICATE = "USRCERT";
- private static final String USER_KEY = "USRKEY";
-
private static final String KEYNAME_DELIMITER = "_";
private static final Keystore sKeystore = Keystore.getInstance();