OC-3116: Add a warning dialog for untrusted SslCertificates and show it instead of...
[pub/Android/ownCloud.git] / res / layout / ssl_untrusted_cert_layout.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 ownCloud Android client application
4
5 Copyright (C) 2012-2013 ownCloud Inc.
6
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 2,
9 as published by the Free Software Foundation.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 -->
19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20 android:id="@+id/root"
21 android:layout_width="wrap_content"
22 android:layout_height="wrap_content"
23 android:gravity="center"
24 android:orientation="vertical" >
25
26 <TextView
27 android:id="@+id/untrusted_header"
28 android:layout_width="wrap_content"
29 android:layout_height="wrap_content"
30 android:text="@string/ssl_validator_header"
31 android:padding="5dp"
32 android:textAppearance="?android:attr/textAppearanceMedium"
33 />
34
35 <TextView
36 android:id="@+id/untrusted_reason_cert_not_trusted"
37 android:layout_width="wrap_content"
38 android:layout_height="wrap_content"
39 android:layout_gravity="left"
40 android:paddingLeft="20dp"
41 android:text="@string/ssl_validator_reason_cert_not_trusted"
42 android:textAppearance="?android:attr/textAppearanceSmall"
43 />
44
45 <ScrollView
46 android:id="@+id/untrusted_details_scroll"
47 android:visibility="gone"
48 android:padding="20dp"
49 android:layout_width="wrap_content"
50 android:layout_height="180dp">
51
52 <LinearLayout
53 android:id="@+id/untrusted_details_view"
54 android:layout_width="wrap_content"
55 android:layout_height="wrap_content"
56 android:gravity="left"
57 android:orientation="vertical" >
58
59 <TextView
60 android:id="@+id/untrusted_null_cert"
61 android:layout_width="wrap_content"
62 android:layout_height="wrap_content"
63 android:layout_gravity="left"
64 android:paddingLeft="20dp"
65 android:text="@string/ssl_validator_null_cert"
66 android:textAppearance="?android:attr/textAppearanceSmall" />
67
68 <TextView
69 android:id="@+id/untrusted_label_subject"
70 android:layout_width="wrap_content"
71 android:layout_height="wrap_content"
72 android:paddingBottom="5dp"
73 android:text="@string/ssl_validator_label_subject"
74 android:textAppearance="?android:attr/textAppearanceMedium"
75 />
76
77 <TextView
78 android:id="@+id/untrusted_label_subject_CN"
79 android:layout_width="wrap_content"
80 android:layout_height="wrap_content"
81 android:text="@string/ssl_validator_label_CN"
82 android:textAppearance="?android:attr/textAppearanceSmall"
83 />
84
85 <TextView
86 android:id="@+id/untrusted_value_subject_CN"
87 android:layout_width="wrap_content"
88 android:layout_height="wrap_content"
89 android:paddingBottom="5dp"
90 android:text=""
91 android:textAppearance="?android:attr/textAppearanceSmall"
92 />
93
94 <TextView
95 android:id="@+id/untrusted_label_subject_O"
96 android:layout_width="wrap_content"
97 android:layout_height="wrap_content"
98 android:text="@string/ssl_validator_label_O"
99 android:textAppearance="?android:attr/textAppearanceSmall"
100 />
101
102 <TextView
103 android:id="@+id/untrusted_value_subject_O"
104 android:layout_width="wrap_content"
105 android:layout_height="wrap_content"
106 android:paddingBottom="5dp"
107 android:text=""
108 android:textAppearance="?android:attr/textAppearanceSmall"
109 />
110
111 <TextView
112 android:id="@+id/untrusted_label_subject_OU"
113 android:layout_width="wrap_content"
114 android:layout_height="wrap_content"
115 android:text="@string/ssl_validator_label_OU"
116 android:textAppearance="?android:attr/textAppearanceSmall"
117 />
118
119 <TextView
120 android:id="@+id/untrusted_value_subject_OU"
121 android:layout_width="wrap_content"
122 android:layout_height="wrap_content"
123 android:paddingBottom="5dp"
124 android:text=""
125 android:textAppearance="?android:attr/textAppearanceSmall"
126 />
127
128 <TextView
129 android:id="@+id/untrusted_label_subject_ST"
130 android:layout_width="wrap_content"
131 android:layout_height="wrap_content"
132 android:text="@string/ssl_validator_label_ST"
133 android:textAppearance="?android:attr/textAppearanceSmall"
134 />
135
136 <TextView
137 android:id="@+id/untrusted_value_subject_ST"
138 android:layout_width="wrap_content"
139 android:layout_height="wrap_content"
140 android:paddingBottom="5dp"
141 android:text=""
142 android:textAppearance="?android:attr/textAppearanceSmall"
143 />
144
145 <TextView
146 android:id="@+id/untrusted_label_subject_C"
147 android:layout_width="wrap_content"
148 android:layout_height="wrap_content"
149 android:text="@string/ssl_validator_label_C"
150 android:textAppearance="?android:attr/textAppearanceSmall"
151 />
152
153 <TextView
154 android:id="@+id/untrusted_value_subject_C"
155 android:layout_width="wrap_content"
156 android:layout_height="wrap_content"
157 android:paddingBottom="5dp"
158 android:text=""
159 android:textAppearance="?android:attr/textAppearanceSmall"
160 />
161
162 <TextView
163 android:id="@+id/untrusted_label_subject_L"
164 android:layout_width="wrap_content"
165 android:layout_height="wrap_content"
166 android:text="@string/ssl_validator_label_L"
167 android:textAppearance="?android:attr/textAppearanceSmall"
168 />
169
170 <TextView
171 android:id="@+id/untrusted_value_subject_L"
172 android:layout_width="wrap_content"
173 android:layout_height="wrap_content"
174 android:paddingBottom="5dp"
175 android:text=""
176 android:textAppearance="?android:attr/textAppearanceSmall"
177 />
178
179
180 <TextView
181 android:id="@+id/untrusted_label_issuer"
182 android:layout_width="wrap_content"
183 android:layout_height="wrap_content"
184 android:paddingBottom="5dp"
185 android:text="@string/ssl_validator_label_issuer"
186 android:textAppearance="?android:attr/textAppearanceMedium"
187 />
188
189 <TextView
190 android:id="@+id/untrusted_label_issuer_CN"
191 android:layout_width="wrap_content"
192 android:layout_height="wrap_content"
193 android:text="@string/ssl_validator_label_CN"
194 android:textAppearance="?android:attr/textAppearanceSmall"
195 />
196
197 <TextView
198 android:id="@+id/untrusted_value_issuer_CN"
199 android:layout_width="wrap_content"
200 android:layout_height="wrap_content"
201 android:paddingBottom="5dp"
202 android:text=""
203 android:textAppearance="?android:attr/textAppearanceSmall"
204 />
205
206 <TextView
207 android:id="@+id/untrusted_label_issuer_O"
208 android:layout_width="wrap_content"
209 android:layout_height="wrap_content"
210 android:text="@string/ssl_validator_label_O"
211 android:textAppearance="?android:attr/textAppearanceSmall"
212 />
213
214 <TextView
215 android:id="@+id/untrusted_value_issuer_O"
216 android:layout_width="wrap_content"
217 android:layout_height="wrap_content"
218 android:paddingBottom="5dp"
219 android:text=""
220 android:textAppearance="?android:attr/textAppearanceSmall"
221 />
222
223 <TextView
224 android:id="@+id/untrusted_label_issuer_OU"
225 android:layout_width="wrap_content"
226 android:layout_height="wrap_content"
227 android:text="@string/ssl_validator_label_OU"
228 android:textAppearance="?android:attr/textAppearanceSmall"
229 />
230
231 <TextView
232 android:id="@+id/untrusted_value_issuer_OU"
233 android:layout_width="wrap_content"
234 android:layout_height="wrap_content"
235 android:paddingBottom="5dp"
236 android:text=""
237 android:textAppearance="?android:attr/textAppearanceSmall"
238 />
239
240 <TextView
241 android:id="@+id/untrusted_label_issuer_ST"
242 android:layout_width="wrap_content"
243 android:layout_height="wrap_content"
244 android:text="@string/ssl_validator_label_ST"
245 android:textAppearance="?android:attr/textAppearanceSmall"
246 />
247
248 <TextView
249 android:id="@+id/untrusted_value_issuer_ST"
250 android:layout_width="wrap_content"
251 android:layout_height="wrap_content"
252 android:paddingBottom="5dp"
253 android:text=""
254 android:textAppearance="?android:attr/textAppearanceSmall"
255 />
256
257 <TextView
258 android:id="@+id/untrusted_label_issuer_C"
259 android:layout_width="wrap_content"
260 android:layout_height="wrap_content"
261 android:text="@string/ssl_validator_label_C"
262 android:textAppearance="?android:attr/textAppearanceSmall"
263 />
264
265 <TextView
266 android:id="@+id/untrusted_value_issuer_C"
267 android:layout_width="wrap_content"
268 android:layout_height="wrap_content"
269 android:paddingBottom="5dp"
270 android:text=""
271 android:textAppearance="?android:attr/textAppearanceSmall"
272 />
273
274 <TextView
275 android:id="@+id/untrusted_label_issuer_L"
276 android:layout_width="wrap_content"
277 android:layout_height="wrap_content"
278 android:text="@string/ssl_validator_label_L"
279 android:textAppearance="?android:attr/textAppearanceSmall"
280 />
281
282 <TextView
283 android:id="@+id/untrusted_value_issuer_L"
284 android:layout_width="wrap_content"
285 android:layout_height="wrap_content"
286 android:paddingBottom="5dp"
287 android:text=""
288 android:textAppearance="?android:attr/textAppearanceSmall"
289 />
290
291 <TextView
292 android:id="@+id/untrusted_label_validity"
293 android:layout_width="wrap_content"
294 android:layout_height="wrap_content"
295 android:paddingBottom="5dp"
296 android:text="@string/ssl_validator_label_validity"
297 android:textAppearance="?android:attr/textAppearanceMedium"
298 />
299
300 <TextView
301 android:id="@+id/untrusted_label_validity_from"
302 android:layout_width="wrap_content"
303 android:layout_height="wrap_content"
304 android:text="@string/ssl_validator_label_validity_from"
305 android:textAppearance="?android:attr/textAppearanceSmall"
306 />
307
308 <TextView
309 android:id="@+id/untrusted_value_validity_from"
310 android:layout_width="wrap_content"
311 android:layout_height="wrap_content"
312 android:paddingBottom="5dp"
313 android:text=""
314 android:textAppearance="?android:attr/textAppearanceSmall"
315 />
316
317 <TextView
318 android:id="@+id/untrusted_label_validity_to"
319 android:layout_width="wrap_content"
320 android:layout_height="wrap_content"
321 android:text="@string/ssl_validator_label_validity_to"
322 android:textAppearance="?android:attr/textAppearanceSmall"
323 />
324
325 <TextView
326 android:id="@+id/untrusted_value_validity_to"
327 android:layout_width="wrap_content"
328 android:layout_height="wrap_content"
329 android:paddingBottom="5dp"
330 android:text=""
331 android:textAppearance="?android:attr/textAppearanceSmall"
332 />
333
334
335 <TextView
336 android:id="@+id/untrusted_label_signature"
337 android:layout_width="wrap_content"
338 android:layout_height="wrap_content"
339 android:paddingBottom="5dp"
340 android:text="@string/ssl_validator_label_signature"
341 android:textAppearance="?android:attr/textAppearanceMedium"
342 />
343
344 <TextView
345 android:id="@+id/untrusted_label_signature_algorithm"
346 android:layout_width="wrap_content"
347 android:layout_height="wrap_content"
348 android:text="@string/ssl_validator_label_signature_algorithm"
349 android:textAppearance="?android:attr/textAppearanceSmall"
350 />
351
352 <TextView
353 android:id="@+id/untrusted_value_signature_algorithm"
354 android:layout_width="wrap_content"
355 android:layout_height="wrap_content"
356 android:paddingBottom="5dp"
357 android:text=""
358 android:textAppearance="?android:attr/textAppearanceSmall"
359 />
360
361
362 <TextView
363 android:id="@+id/untrusted_value_signature"
364 android:layout_width="wrap_content"
365 android:layout_height="wrap_content"
366 android:paddingBottom="5dp"
367 android:text=""
368 android:textAppearance="?android:attr/textAppearanceSmall"
369 />
370
371 </LinearLayout>
372
373 </ScrollView>
374
375 <TextView
376 android:id="@+id/untrusted_question"
377 android:layout_width="wrap_content"
378 android:layout_height="wrap_content"
379 android:padding="5dp"
380 android:text="@string/ssl_validator_question"
381 android:textAppearance="?android:attr/textAppearanceMedium"
382 >
383 </TextView>
384
385 <LinearLayout
386 android:layout_width="match_parent"
387 android:layout_height="wrap_content"
388 android:gravity="center" >
389
390 <Button
391 android:id="@+id/untrusted_cancel"
392 android:layout_width="0dp"
393 android:layout_height="wrap_content"
394 android:layout_weight="1"
395 android:text="@string/common_cancel" />
396
397 <Button
398 android:id="@+id/untrusted_details_btn"
399 android:layout_width="0dp"
400 android:layout_height="wrap_content"
401 android:layout_weight="1"
402 android:text="@string/ssl_validator_btn_details_see" />
403
404 <Button
405 android:id="@+id/untrusted_ok"
406 android:layout_width="0dp"
407 android:layout_height="wrap_content"
408 android:layout_weight="1"
409 android:text="@string/common_ok" />
410
411 </LinearLayout>
412
413 </LinearLayout>