27 private static SecurityPromptMessage self = null; |
27 private static SecurityPromptMessage self = null; |
28 /** ResourceLoader for fetching localised texts. */ |
28 /** ResourceLoader for fetching localised texts. */ |
29 private static ResourceLoader iRes = null; |
29 private static ResourceLoader iRes = null; |
30 |
30 |
31 // identifiers for the security prompt questions |
31 // identifiers for the security prompt questions |
32 public static final Id QUESTION_ID_NETWORK_USAGE = new Id("network_usage", "N/A"); |
32 public static final Id QUESTION_ID_NETWORK_USAGE = new Id("network_usage", "info_network_usage"); |
33 public static final Id QUESTION_ID_SMS_OPENING_CONN = new Id("sms_opening_conn", "N/A"); |
33 public static final Id QUESTION_ID_SMS_OPENING_CONN = new Id("sms_opening_conn", "info_sms_opening"); |
34 public static final Id QUESTION_ID_MMS_OPENING_CONN = new Id("mms_opening_conn", "N/A"); |
34 public static final Id QUESTION_ID_MMS_OPENING_CONN = new Id("mms_opening_conn", "info_mms_opening"); |
35 public static final Id QUESTION_ID_CBS_OPENING_CONN = new Id("cbs_opening_conn", "N/A"); |
35 public static final Id QUESTION_ID_CBS_OPENING_CONN = new Id("cbs_opening_conn", "info_cbs_opening"); |
36 public static final Id QUESTION_ID_SMS_RECEIVING = new Id("sms_receiving", "N/A"); |
36 public static final Id QUESTION_ID_SMS_RECEIVING = new Id("sms_receiving", "info_sms_receiving"); |
37 public static final Id QUESTION_ID_MMS_RECEIVING = new Id("mms_receiving", "N/A"); |
37 public static final Id QUESTION_ID_MMS_RECEIVING = new Id("mms_receiving", "info_mms_receiving"); |
38 public static final Id QUESTION_ID_CBS_RECEIVING = new Id("cbs_receiving", "N/A"); |
38 public static final Id QUESTION_ID_CBS_RECEIVING = new Id("cbs_receiving", "info_cbs_receiving"); |
39 public static final Id QUESTION_ID_SMS_SENDING = new Id("sms_sending", "N/A"); |
39 public static final Id QUESTION_ID_SMS_SENDING = new Id("sms_sending", "info_sms_sending"); |
40 public static final Id QUESTION_ID_SMS_SINGLE_SENDING = new Id("sms_single_sending", "N/A"); |
40 public static final Id QUESTION_ID_SMS_SINGLE_SENDING = new Id("sms_single_sending", "info_sms_single_sending"); |
41 public static final Id QUESTION_ID_MMS_SENDING = new Id("mms_sending", "N/A"); |
41 public static final Id QUESTION_ID_MMS_SINGLE_SENDING = new Id("mms_single_sending", "info_mms_single_sending"); |
42 public static final Id QUESTION_ID_MMS_SINGLE_SENDING = new Id("mms_single_sending", "N/A"); |
42 public static final Id QUESTION_ID_MMS_SINGLE_SENDING_MULTIPLE_DESTINATIONS = new Id("mms_single_sending_multiple_destinations", "info_mms_single_send_multiple_dest"); |
43 public static final Id QUESTION_ID_MMS_SINGLE_SENDING_MULTIPLE_DESTINATIONS = new Id("mms_single_sending_multiple_destinations", "N/A"); |
43 public static final Id QUESTION_ID_SEND_RECEIVE_MESSAGES = new Id("receive_send_messages", "info_receive_send_messages"); |
44 public static final Id QUESTION_ID_SEND_RECEIVE_MESSAGES = new Id("receive_send_messages", "N/A"); |
44 public static final Id QUESTION_ID_LOCAL_CONNECTIVITY = new Id("local_connectivity", "info_local_connectivity"); |
45 public static final Id QUESTION_ID_LOCAL_CONNECTIVITY = new Id("local_connectivity", "N/A"); |
45 public static final Id QUESTION_ID_AUDIO_VIDEO_RECORDING = new Id("audio_video_recording", "info_audio_video_recording"); |
46 public static final Id QUESTION_ID_AUDIO_VIDEO_RECORDING = new Id("audio_video_recording", "N/A"); |
46 public static final Id QUESTION_ID_READING_USER_DATA = new Id("reading_user_data", "info_reading_user_data"); |
47 public static final Id QUESTION_ID_READING_USER_DATA = new Id("reading_user_data", "N/A"); |
47 public static final Id QUESTION_ID_WRITING_USER_DATA = new Id("writing_user_data", "info_writing_user_data"); |
48 public static final Id QUESTION_ID_WRITING_USER_DATA = new Id("writing_user_data", "N/A"); |
48 public static final Id QUESTION_ID_READING_FILE = new Id("reading_file", "info_reading_file"); |
49 public static final Id QUESTION_ID_READING_FILE = new Id("reading_file", "N/A"); |
49 public static final Id QUESTION_ID_MANAGE_USER_DATA = new Id("manage_user_data", "info_manage_user_data"); |
50 public static final Id QUESTION_ID_MANAGE_USER_DATA = new Id("manage_user_data", "N/A"); |
50 public static final Id QUESTION_ID_MODIFYING_FILE = new Id("modifying_file", "info_modifying_file"); |
51 public static final Id QUESTION_ID_MODIFYING_FILE = new Id("modifying_file", "N/A"); |
51 public static final Id QUESTION_ID_READING_LOCATION_DATA = new Id("reading_location_data", "info_reading_location_data"); |
52 public static final Id QUESTION_ID_READING_LOCATION_DATA = new Id("reading_location_data", "N/A"); |
52 public static final Id QUESTION_ID_READING_LANDMARK_DATA = new Id("reading_landmark_data", "info_reading_landmark_data"); |
53 public static final Id QUESTION_ID_READING_LANDMARK_DATA = new Id("reading_landmark_data", "N/A"); |
53 public static final Id QUESTION_ID_READING_SMARTCARD = new Id("reading_smartcard", "info_reading_smartcard"); |
54 public static final Id QUESTION_ID_READING_SMARTCARD = new Id("reading_smartcard", "N/A"); |
54 public static final Id QUESTION_ID_AUTH_SERVICES_USAGE = new Id("auth_services_usage", "info_auth_services_usage"); |
55 public static final Id QUESTION_ID_AUTH_SERVICES_USAGE = new Id("auth_services_usage", "N/A"); |
55 public static final Id QUESTION_ID_BLUETOOTH_USAGE = new Id("bluetooth_usage", "info_bluetooth_usage"); |
56 public static final Id QUESTION_ID_BLUETOOTH_USAGE = new Id("bluetooth_usage", "N/A"); |
56 public static final Id QUESTION_ID_READING_CONTACTS = new Id("reading_contacts", "info_reading_contacts"); |
57 public static final Id QUESTION_ID_READING_CONTACTS = new Id("reading_contacts", "N/A"); |
57 public static final Id QUESTION_ID_MODIFYING_CONTACTS = new Id("modifying_contacts", "info_modifying_contacts"); |
58 public static final Id QUESTION_ID_MODIFYING_CONTACTS = new Id("modifying_contacts", "N/A"); |
58 public static final Id QUESTION_ID_READING_EVENTS = new Id("reading_events", "info_reading_events"); |
59 public static final Id QUESTION_ID_READING_EVENTS = new Id("reading_events", "N/A"); |
59 public static final Id QUESTION_ID_MODIFYING_EVENTS = new Id("modifying_events", "info_modifying_events"); |
60 public static final Id QUESTION_ID_MODIFYING_EVENTS = new Id("modifying_events", "N/A"); |
60 public static final Id QUESTION_ID_READING_TODOS = new Id("reading_todos", "info_reading_todos"); |
61 public static final Id QUESTION_ID_READING_TODOS = new Id("reading_todos", "N/A"); |
61 public static final Id QUESTION_ID_MODIFYING_TODOS = new Id("modifying_todos", "info_modifying_todos"); |
62 public static final Id QUESTION_ID_MODIFYING_TODOS = new Id("modifying_todos", "N/A"); |
62 public static final Id QUESTION_ID_DELETING_ITEM = new Id("deleting_item", "info_deleting_item"); |
63 public static final Id QUESTION_ID_DELETING_ITEM = new Id("deleting_item", "N/A"); |
63 public static final Id QUESTION_ID_UPDATING_ITEM = new Id("updating_item", "info_updating_item"); |
64 public static final Id QUESTION_ID_UPDATING_ITEM = new Id("updating_item", "N/A"); |
64 public static final Id QUESTION_ID_DELETING_CATEGORY = new Id("deleting_category", "info_deleting_category"); |
65 public static final Id QUESTION_ID_DELETING_CATEGORY = new Id("deleting_category", "N/A"); |
65 public static final Id QUESTION_ID_UPDATING_CATEGORY = new Id("updating_category", "info_updating_category"); |
66 public static final Id QUESTION_ID_UPDATING_CATEGORY = new Id("updating_category", "N/A"); |
66 public static final Id QUESTION_ID_DELETING_UNNAMED_ITEM = new Id("deleting_unnamed_item", "info_deleting_unnamed_item"); |
67 public static final Id QUESTION_ID_DELETING_UNNAMED_ITEM = new Id("deleting_unnamed_item", "N/A"); |
67 public static final Id QUESTION_ID_UPDATING_UNNAMED_ITEM = new Id("updating_unnamed_item", "info_updating_unnamed_item"); |
68 public static final Id QUESTION_ID_UPDATING_UNNAMED_ITEM = new Id("updating_unnamed_item", "N/A"); |
68 public static final Id QUESTION_ID_ADDING_CALENDAR = new Id("adding_calendar", "info_adding_calendar"); |
69 public static final Id QUESTION_ID_ADDING_CALENDAR = new Id("adding_calendar", "N/A"); |
69 public static final Id QUESTION_ID_DELETING_CALENDAR = new Id("deleting_calendar", "info_deleting_calendar"); |
70 public static final Id QUESTION_ID_DELETING_CALENDAR = new Id("deleting_calendar", "N/A"); |
70 public static final Id QUESTION_ID_LISTING_CALENDARS = new Id("listing_calendars", "listing_calendars"); |
71 public static final Id QUESTION_ID_LISTING_CALENDARS = new Id("listing_calendars", "N/A"); |
71 public static final Id QUESTION_ID_ORIENTATION_DATA_USAGE = new Id("orientation_data_usage", "info_orientation_data_usage"); |
72 public static final Id QUESTION_ID_ORIENTATION_DATA_USAGE = new Id("orientation_data_usage", "N/A"); |
72 public static final Id QUESTION_ID_POSITIONING_DATA_USAGE = new Id("positioning_data_usage", "info_positioning_data_usage"); |
73 public static final Id QUESTION_ID_POSITIONING_DATA_USAGE = new Id("positioning_data_usage", "N/A"); |
73 public static final Id QUESTION_ID_LANDMARK_DATA_USAGE = new Id("landmark_data_usage", "info_landmarks_data_usage"); |
74 public static final Id QUESTION_ID_LANDMARK_DATA_USAGE = new Id("landmark_data_usage", "N/A"); |
74 public static final Id QUESTION_ID_PROXIMITY_LISTENER_REGISTRATION = new Id("proximity_listener_registration", "info_proximity_listener_reg"); |
75 public static final Id QUESTION_ID_PROXIMITY_LISTENER_REGISTRATION = new Id("proximity_listener_registration", "N/A"); |
75 public static final Id QUESTION_ID_MOBITV_DATA_USAGE = new Id("tv_broadcast_user_data_access", "info_tv_broadcast_user_data_access"); |
76 public static final Id QUESTION_ID_MOBITV_DATA_USAGE = new Id("tv_broadcast_user_data_access", "N/A"); |
76 public static final Id QUESTION_ID_NETWORK_USAGE_VIA_PLAT_REQ = new Id("network_usage_via_plat_req", "info_network_usage_via_plat_req"); |
77 public static final Id QUESTION_ID_NETWORK_USAGE_VIA_PLAT_REQ = new Id("network_usage_via_plat_req", "N/A"); |
77 public static final Id QUESTION_ID_APP_LAUNCH_VIA_PLAT_REQ = new Id("app_launch_via_plat_req", "info_app_launch_via_plat_req"); |
78 public static final Id QUESTION_ID_APP_LAUNCH_VIA_PLAT_REQ = new Id("app_launch_via_plat_req", "N/A"); |
78 public static final Id QUESTION_ID_PUSH_STATIC_REGISTRATION = new Id("push_registration_static", "info_push_registration_dynamic"); // should be "info_push_registration_static" |
79 public static final Id QUESTION_ID_PUSH_STATIC_REGISTRATION = new Id("push_registration_static", "N/A"); |
79 public static final Id QUESTION_ID_PUSH_DYNAMIC_REGISTRATION = new Id("push_registration_dynamic", "info_push_registration_dynamic"); |
80 public static final Id QUESTION_ID_PUSH_DYNAMIC_REGISTRATION = new Id("push_registration_dynamic", "N/A"); |
80 public static final Id QUESTION_ID_AUTO_INVOCATION = new Id("auto_invocation", "info_auto_invocation"); |
81 public static final Id QUESTION_ID_AUTO_INVOCATION = new Id("auto_invocation", "N/A"); |
81 public static final Id QUESTION_ID_NDEF_TAG_WRITE = new Id("nfc_ndef_tag_write", "info_nfc_ndef_tag_write"); |
82 public static final Id QUESTION_ID_NDEF_TAG_WRITE = new Id("nfc_ndef_tag_write", "N/A"); |
82 public static final Id QUESTION_ID_APP_AUTO_LAUNCH = new Id("url_start", "info_url_start"); |
83 public static final Id QUESTION_ID_APP_AUTO_LAUNCH = new Id("url_start", "N/A"); |
|
84 |
83 |
85 // identifiers for the security prompt answer options |
84 // identifiers for the security prompt answer options |
86 public static final Id ANSWER_ID_ALLOW = new Id("prompt_allow", "N/A"); |
85 public static final Id ANSWER_ID_ALLOW = new Id("prompt_allow", "button_prompt_allow"); |
87 public static final Id ANSWER_ID_DENY = new Id("prompt_deny", "N/A"); |
86 public static final Id ANSWER_ID_DENY = new Id("prompt_deny", "button_prompt_deny"); |
88 public static final Id ANSWER_ID_YES = new Id("prompt_yes", "N/A"); |
87 public static final Id ANSWER_ID_YES = new Id("prompt_yes", "N/A"); // not used in 10.1TB |
89 public static final Id ANSWER_ID_NO = new Id("prompt_no", "N/A"); |
88 public static final Id ANSWER_ID_NO = new Id("prompt_no", "N/A"); // not used in 10.1TB |
90 |
89 |
91 // general purpose identifiers |
90 // general purpose identifiers |
92 public static final Id SECURITY_WARNING_ID = new Id("general_warning", "N/A"); |
91 public static final Id SECURITY_WARNING_ID = new Id("general_warning", "N/A"); // not used in 10.1TB |
93 public static final Id OCSP_WARNING_ID = new Id("ocsp_warning", "N/A"); |
92 public static final Id OCSP_WARNING_ID = new Id("ocsp_warning", "info_ocsp_warning"); |
94 |
93 |
95 // Localised resources |
94 // Localised resources |
96 private static final String AVKON_LOC_FILE = "javausermessages"; |
95 private static final String AVKON_LOC_FILE = "javausermessages"; |
97 private static final String AVKON_PREFIX = "qtn_java_secur_"; |
96 private static final String AVKON_PREFIX = "qtn_java_secur_"; |
98 private static final String QT_LOC_FILE = "N/A"; |
97 private static final String QT_LOC_FILE = "javaapplicationsecuritymessages"; |
99 private static final String QT_PREFIX = ""; |
98 private static final String QT_PREFIX = "txt_java_secur_"; |
100 |
99 |
101 /** |
100 /** |
102 * Creates an instance of the SecurityPromptMessage |
101 * Creates an instance of the SecurityPromptMessage |
103 * |
102 * |
104 * @return An instance of SecurityPromptMessage |
103 * @return An instance of SecurityPromptMessage |