1 <?xml version=
"1.0" encoding=
"utf-8"?>
3 ownCloud Android client application
5 Copyright (C)
2015 ownCloud Inc.
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.
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.
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
/>.
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:
padding=
"@dimen/standard_padding"
25 android:
orientation=
"vertical" >
28 android:
id=
"@+id/header"
29 android:
layout_width=
"wrap_content"
30 android:
layout_height=
"wrap_content"
31 android:
layout_weight=
"0"
32 android:
paddingBottom=
"@dimen/standard_padding"
33 android:
text=
"@string/ssl_validator_header"
34 android:
textAppearance=
"?android:attr/textAppearanceMedium"
35 android:
textColor=
"@android:color/black"
39 android:
id=
"@+id/reason_cert_not_trusted"
40 android:
layout_width=
"wrap_content"
41 android:
layout_height=
"wrap_content"
42 android:
layout_weight=
"0"
43 android:
layout_gravity=
"left"
44 android:
paddingLeft=
"8dp"
45 android:
text=
"@string/ssl_validator_reason_cert_not_trusted"
46 android:
textAppearance=
"?android:attr/textAppearanceSmall"
51 android:
id=
"@+id/reason_cert_expired"
52 android:
layout_width=
"wrap_content"
53 android:
layout_height=
"wrap_content"
54 android:
layout_gravity=
"left"
55 android:
paddingLeft=
"8dp"
56 android:
text=
"@string/ssl_validator_reason_cert_expired"
57 android:
textAppearance=
"?android:attr/textAppearanceSmall"
61 android:
id=
"@+id/reason_cert_not_yet_valid"
62 android:
layout_width=
"wrap_content"
63 android:
layout_height=
"wrap_content"
64 android:
layout_gravity=
"left"
65 android:
paddingLeft=
"8dp"
66 android:
text=
"@string/ssl_validator_reason_cert_not_yet_valid"
67 android:
textAppearance=
"?android:attr/textAppearanceSmall"
71 android:
id=
"@+id/reason_hostname_not_verified"
72 android:
layout_width=
"wrap_content"
73 android:
layout_height=
"wrap_content"
74 android:
layout_gravity=
"left"
75 android:
paddingLeft=
"8dp"
76 android:
text=
"@string/ssl_validator_reason_hostname_not_verified"
77 android:
textAppearance=
"?android:attr/textAppearanceSmall"
81 android:
id=
"@+id/reason_no_info_about_error"
82 android:
layout_width=
"wrap_content"
83 android:
layout_height=
"wrap_content"
84 android:
layout_gravity=
"left"
85 android:
paddingLeft=
"8dp"
86 android:
text=
"@string/ssl_validator_no_info_about_error"
87 android:
textAppearance=
"?android:attr/textAppearanceSmall"
91 android:
id=
"@+id/details_scroll"
92 android:
visibility=
"gone"
94 android:
layout_width=
"match_parent"
95 android:
layout_height=
"0dp"
96 android:
layout_weight=
"1"
100 android:
id=
"@+id/details_view"
101 android:
layout_width=
"wrap_content"
102 android:
layout_height=
"wrap_content"
103 android:
gravity=
"left"
104 android:
orientation=
"vertical" >
107 android:
id=
"@+id/null_cert"
108 android:
layout_width=
"wrap_content"
109 android:
layout_height=
"wrap_content"
110 android:
layout_gravity=
"left"
111 android:
paddingLeft=
"20dp"
112 android:
text=
"@string/ssl_validator_null_cert"
113 android:
textAppearance=
"?android:attr/textAppearanceSmall" />
116 android:
id=
"@+id/label_subject"
117 android:
layout_width=
"wrap_content"
118 android:
layout_height=
"wrap_content"
119 android:
paddingBottom=
"5dp"
120 android:
text=
"@string/ssl_validator_label_subject"
121 android:
textAppearance=
"?android:attr/textAppearanceMedium"
125 android:
id=
"@+id/label_subject_CN"
126 android:
layout_width=
"wrap_content"
127 android:
layout_height=
"wrap_content"
128 android:
text=
"@string/ssl_validator_label_CN"
129 android:
textAppearance=
"?android:attr/textAppearanceSmall"
133 android:
id=
"@+id/value_subject_CN"
134 android:
layout_width=
"wrap_content"
135 android:
layout_height=
"wrap_content"
136 android:
paddingBottom=
"5dp"
138 android:
textAppearance=
"?android:attr/textAppearanceSmall"
142 android:
id=
"@+id/label_subject_O"
143 android:
layout_width=
"wrap_content"
144 android:
layout_height=
"wrap_content"
145 android:
text=
"@string/ssl_validator_label_O"
146 android:
textAppearance=
"?android:attr/textAppearanceSmall"
150 android:
id=
"@+id/value_subject_O"
151 android:
layout_width=
"wrap_content"
152 android:
layout_height=
"wrap_content"
153 android:
paddingBottom=
"5dp"
155 android:
textAppearance=
"?android:attr/textAppearanceSmall"
159 android:
id=
"@+id/label_subject_OU"
160 android:
layout_width=
"wrap_content"
161 android:
layout_height=
"wrap_content"
162 android:
text=
"@string/ssl_validator_label_OU"
163 android:
textAppearance=
"?android:attr/textAppearanceSmall"
167 android:
id=
"@+id/value_subject_OU"
168 android:
layout_width=
"wrap_content"
169 android:
layout_height=
"wrap_content"
170 android:
paddingBottom=
"5dp"
172 android:
textAppearance=
"?android:attr/textAppearanceSmall"
176 android:
id=
"@+id/label_subject_ST"
177 android:
layout_width=
"wrap_content"
178 android:
layout_height=
"wrap_content"
179 android:
text=
"@string/ssl_validator_label_ST"
180 android:
textAppearance=
"?android:attr/textAppearanceSmall"
184 android:
id=
"@+id/value_subject_ST"
185 android:
layout_width=
"wrap_content"
186 android:
layout_height=
"wrap_content"
187 android:
paddingBottom=
"5dp"
189 android:
textAppearance=
"?android:attr/textAppearanceSmall"
193 android:
id=
"@+id/label_subject_C"
194 android:
layout_width=
"wrap_content"
195 android:
layout_height=
"wrap_content"
196 android:
text=
"@string/ssl_validator_label_C"
197 android:
textAppearance=
"?android:attr/textAppearanceSmall"
201 android:
id=
"@+id/value_subject_C"
202 android:
layout_width=
"wrap_content"
203 android:
layout_height=
"wrap_content"
204 android:
paddingBottom=
"5dp"
206 android:
textAppearance=
"?android:attr/textAppearanceSmall"
210 android:
id=
"@+id/label_subject_L"
211 android:
layout_width=
"wrap_content"
212 android:
layout_height=
"wrap_content"
213 android:
text=
"@string/ssl_validator_label_L"
214 android:
textAppearance=
"?android:attr/textAppearanceSmall"
218 android:
id=
"@+id/value_subject_L"
219 android:
layout_width=
"wrap_content"
220 android:
layout_height=
"wrap_content"
221 android:
paddingBottom=
"5dp"
223 android:
textAppearance=
"?android:attr/textAppearanceSmall"
228 android:
id=
"@+id/label_issuer"
229 android:
layout_width=
"wrap_content"
230 android:
layout_height=
"wrap_content"
231 android:
paddingBottom=
"5dp"
232 android:
text=
"@string/ssl_validator_label_issuer"
233 android:
textAppearance=
"?android:attr/textAppearanceMedium"
237 android:
id=
"@+id/label_issuer_CN"
238 android:
layout_width=
"wrap_content"
239 android:
layout_height=
"wrap_content"
240 android:
text=
"@string/ssl_validator_label_CN"
241 android:
textAppearance=
"?android:attr/textAppearanceSmall"
245 android:
id=
"@+id/value_issuer_CN"
246 android:
layout_width=
"wrap_content"
247 android:
layout_height=
"wrap_content"
248 android:
paddingBottom=
"5dp"
250 android:
textAppearance=
"?android:attr/textAppearanceSmall"
254 android:
id=
"@+id/label_issuer_O"
255 android:
layout_width=
"wrap_content"
256 android:
layout_height=
"wrap_content"
257 android:
text=
"@string/ssl_validator_label_O"
258 android:
textAppearance=
"?android:attr/textAppearanceSmall"
262 android:
id=
"@+id/value_issuer_O"
263 android:
layout_width=
"wrap_content"
264 android:
layout_height=
"wrap_content"
265 android:
paddingBottom=
"5dp"
267 android:
textAppearance=
"?android:attr/textAppearanceSmall"
271 android:
id=
"@+id/label_issuer_OU"
272 android:
layout_width=
"wrap_content"
273 android:
layout_height=
"wrap_content"
274 android:
text=
"@string/ssl_validator_label_OU"
275 android:
textAppearance=
"?android:attr/textAppearanceSmall"
279 android:
id=
"@+id/value_issuer_OU"
280 android:
layout_width=
"wrap_content"
281 android:
layout_height=
"wrap_content"
282 android:
paddingBottom=
"5dp"
284 android:
textAppearance=
"?android:attr/textAppearanceSmall"
288 android:
id=
"@+id/label_issuer_ST"
289 android:
layout_width=
"wrap_content"
290 android:
layout_height=
"wrap_content"
291 android:
text=
"@string/ssl_validator_label_ST"
292 android:
textAppearance=
"?android:attr/textAppearanceSmall"
296 android:
id=
"@+id/value_issuer_ST"
297 android:
layout_width=
"wrap_content"
298 android:
layout_height=
"wrap_content"
299 android:
paddingBottom=
"5dp"
301 android:
textAppearance=
"?android:attr/textAppearanceSmall"
305 android:
id=
"@+id/label_issuer_C"
306 android:
layout_width=
"wrap_content"
307 android:
layout_height=
"wrap_content"
308 android:
text=
"@string/ssl_validator_label_C"
309 android:
textAppearance=
"?android:attr/textAppearanceSmall"
313 android:
id=
"@+id/value_issuer_C"
314 android:
layout_width=
"wrap_content"
315 android:
layout_height=
"wrap_content"
316 android:
paddingBottom=
"5dp"
318 android:
textAppearance=
"?android:attr/textAppearanceSmall"
322 android:
id=
"@+id/label_issuer_L"
323 android:
layout_width=
"wrap_content"
324 android:
layout_height=
"wrap_content"
325 android:
text=
"@string/ssl_validator_label_L"
326 android:
textAppearance=
"?android:attr/textAppearanceSmall"
330 android:
id=
"@+id/value_issuer_L"
331 android:
layout_width=
"wrap_content"
332 android:
layout_height=
"wrap_content"
333 android:
paddingBottom=
"5dp"
335 android:
textAppearance=
"?android:attr/textAppearanceSmall"
339 android:
id=
"@+id/label_validity"
340 android:
layout_width=
"wrap_content"
341 android:
layout_height=
"wrap_content"
342 android:
paddingBottom=
"5dp"
343 android:
text=
"@string/ssl_validator_label_validity"
344 android:
textAppearance=
"?android:attr/textAppearanceMedium"
348 android:
id=
"@+id/label_validity_from"
349 android:
layout_width=
"wrap_content"
350 android:
layout_height=
"wrap_content"
351 android:
text=
"@string/ssl_validator_label_validity_from"
352 android:
textAppearance=
"?android:attr/textAppearanceSmall"
356 android:
id=
"@+id/value_validity_from"
357 android:
layout_width=
"wrap_content"
358 android:
layout_height=
"wrap_content"
359 android:
paddingBottom=
"5dp"
361 android:
textAppearance=
"?android:attr/textAppearanceSmall"
365 android:
id=
"@+id/label_validity_to"
366 android:
layout_width=
"wrap_content"
367 android:
layout_height=
"wrap_content"
368 android:
text=
"@string/ssl_validator_label_validity_to"
369 android:
textAppearance=
"?android:attr/textAppearanceSmall"
373 android:
id=
"@+id/value_validity_to"
374 android:
layout_width=
"wrap_content"
375 android:
layout_height=
"wrap_content"
376 android:
paddingBottom=
"5dp"
378 android:
textAppearance=
"?android:attr/textAppearanceSmall"
382 android:
id=
"@+id/label_signature"
383 android:
layout_width=
"wrap_content"
384 android:
layout_height=
"wrap_content"
385 android:
paddingBottom=
"5dp"
386 android:
text=
"@string/ssl_validator_label_signature"
387 android:
textAppearance=
"?android:attr/textAppearanceMedium"
391 android:
id=
"@+id/label_signature_algorithm"
392 android:
layout_width=
"wrap_content"
393 android:
layout_height=
"wrap_content"
394 android:
text=
"@string/ssl_validator_label_signature_algorithm"
395 android:
textAppearance=
"?android:attr/textAppearanceSmall"
399 android:
id=
"@+id/value_signature_algorithm"
400 android:
layout_width=
"wrap_content"
401 android:
layout_height=
"wrap_content"
402 android:
paddingBottom=
"5dp"
404 android:
textAppearance=
"?android:attr/textAppearanceSmall"
408 android:
id=
"@+id/label_certificate_fingerprint"
409 android:
layout_width=
"wrap_content"
410 android:
layout_height=
"wrap_content"
411 android:
paddingBottom=
"5dp"
412 android:
text=
"@string/ssl_validator_label_certificate_fingerprint"
413 android:
textAppearance=
"?android:attr/textAppearanceSmall"
417 android:
id=
"@+id/value_certificate_fingerprint"
418 android:
layout_width=
"wrap_content"
419 android:
layout_height=
"wrap_content"
420 android:
paddingBottom=
"5dp"
422 android:
textAppearance=
"?android:attr/textAppearanceSmall"
430 android:
id=
"@+id/question"
431 android:
layout_width=
"wrap_content"
432 android:
layout_height=
"wrap_content"
433 android:
layout_weight=
"0"
434 android:
paddingTop=
"@dimen/standard_padding"
435 android:
text=
"@string/ssl_validator_question"
436 android:
textAppearance=
"?android:attr/textAppearanceMedium"
441 android:
layout_width=
"match_parent"
442 android:
layout_height=
"wrap_content"
443 android:
gravity=
"center" >
445 <android.support.v7.widget.AppCompatButton
446 android:
id=
"@+id/cancel"
447 style=
"@style/Button.Borderless"
448 android:
layout_width=
"0dp"
449 android:
layout_height=
"wrap_content"
450 android:
layout_weight=
"1"
451 android:
text=
"@string/common_no" />
453 <android.support.v7.widget.AppCompatButton
454 android:
id=
"@+id/details_btn"
455 style=
"@style/Button.Borderless"
456 android:
layout_width=
"0dp"
457 android:
layout_height=
"wrap_content"
458 android:
layout_weight=
"2"
459 android:
text=
"@string/ssl_validator_btn_details_see" />
461 <android.support.v7.widget.AppCompatButton
463 style=
"@style/Button.Borderless"
464 android:
layout_width=
"0dp"
465 android:
layout_height=
"wrap_content"
466 android:
layout_weight=
"1"
467 android:
text=
"@string/common_yes" />