From 7e4b1a488dd02c4bf6156379e36834e9e01c5b1b Mon Sep 17 00:00:00 2001 From: Brian Carlstrom Date: Wed, 1 Jun 2011 15:29:29 -0700 Subject: Restore ResponseCodes for use with getLastError Change-Id: I41b5bc9cbb6c05672c92d5864e889fd2b0186141 --- keystore/java/android/security/KeyStore.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'keystore') diff --git a/keystore/java/android/security/KeyStore.java b/keystore/java/android/security/KeyStore.java index 2a48834..9058cae 100644 --- a/keystore/java/android/security/KeyStore.java +++ b/keystore/java/android/security/KeyStore.java @@ -34,16 +34,16 @@ import java.util.ArrayList; public class KeyStore { // ResponseCodes - private static final int NO_ERROR = 1; - private static final int LOCKED = 2; - private static final int UNINITIALIZED = 3; - private static final int SYSTEM_ERROR = 4; - private static final int PROTOCOL_ERROR = 5; - private static final int PERMISSION_DENIED = 6; - private static final int KEY_NOT_FOUND = 7; - private static final int VALUE_CORRUPTED = 8; - private static final int UNDEFINED_ACTION = 9; - private static final int WRONG_PASSWORD = 10; + public static final int NO_ERROR = 1; + public static final int LOCKED = 2; + public static final int UNINITIALIZED = 3; + public static final int SYSTEM_ERROR = 4; + public static final int PROTOCOL_ERROR = 5; + public static final int PERMISSION_DENIED = 6; + public static final int KEY_NOT_FOUND = 7; + public static final int VALUE_CORRUPTED = 8; + public static final int UNDEFINED_ACTION = 9; + public static final int WRONG_PASSWORD = 10; // States public enum State { UNLOCKED, LOCKED, UNINITIALIZED }; -- cgit v1.1