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"
38 android:
id=
"@+id/reason_cert_not_trusted"
39 android:
layout_width=
"wrap_content"
40 android:
layout_height=
"wrap_content"
41 android:
layout_weight=
"0"
42 android:
layout_gravity=
"left"
43 android:
paddingLeft=
"20dp"
44 android:
text=
"@string/ssl_validator_reason_cert_not_trusted"
45 android:
textAppearance=
"?android:attr/textAppearanceSmall"
50 android:
id=
"@+id/reason_cert_expired"
51 android:
layout_width=
"wrap_content"
52 android:
layout_height=
"wrap_content"
53 android:
layout_gravity=
"left"
54 android:
paddingLeft=
"20dp"
55 android:
text=
"@string/ssl_validator_reason_cert_expired"
56 android:
textAppearance=
"?android:attr/textAppearanceSmall"
60 android:
id=
"@+id/reason_cert_not_yet_valid"
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_reason_cert_not_yet_valid"
66 android:
textAppearance=
"?android:attr/textAppearanceSmall"
70 android:
id=
"@+id/reason_hostname_not_verified"
71 android:
layout_width=
"wrap_content"
72 android:
layout_height=
"wrap_content"
73 android:
layout_gravity=
"left"
74 android:
paddingLeft=
"20dp"
75 android:
text=
"@string/ssl_validator_reason_hostname_not_verified"
76 android:
textAppearance=
"?android:attr/textAppearanceSmall"
80 android:
id=
"@+id/reason_no_info_about_error"
81 android:
layout_width=
"wrap_content"
82 android:
layout_height=
"wrap_content"
83 android:
layout_gravity=
"left"
84 android:
paddingLeft=
"20dp"
85 android:
text=
"@string/ssl_validator_no_info_about_error"
86 android:
textAppearance=
"?android:attr/textAppearanceSmall"
90 android:
id=
"@+id/details_scroll"
91 android:
visibility=
"gone"
92 android:
padding=
"20dp"
93 android:
layout_width=
"match_parent"
94 android:
layout_height=
"0dp"
95 android:
layout_weight=
"1"
99 android:
id=
"@+id/details_view"
100 android:
layout_width=
"wrap_content"
101 android:
layout_height=
"wrap_content"
102 android:
gravity=
"left"
103 android:
orientation=
"vertical" >
106 android:
id=
"@+id/null_cert"
107 android:
layout_width=
"wrap_content"
108 android:
layout_height=
"wrap_content"
109 android:
layout_gravity=
"left"
110 android:
paddingLeft=
"20dp"
111 android:
text=
"@string/ssl_validator_null_cert"
112 android:
textAppearance=
"?android:attr/textAppearanceSmall" />
115 android:
id=
"@+id/label_subject"
116 android:
layout_width=
"wrap_content"
117 android:
layout_height=
"wrap_content"
118 android:
paddingBottom=
"5dp"
119 android:
text=
"@string/ssl_validator_label_subject"
120 android:
textAppearance=
"?android:attr/textAppearanceMedium"
124 android:
id=
"@+id/label_subject_CN"
125 android:
layout_width=
"wrap_content"
126 android:
layout_height=
"wrap_content"
127 android:
text=
"@string/ssl_validator_label_CN"
128 android:
textAppearance=
"?android:attr/textAppearanceSmall"
132 android:
id=
"@+id/value_subject_CN"
133 android:
layout_width=
"wrap_content"
134 android:
layout_height=
"wrap_content"
135 android:
paddingBottom=
"5dp"
137 android:
textAppearance=
"?android:attr/textAppearanceSmall"
141 android:
id=
"@+id/label_subject_O"
142 android:
layout_width=
"wrap_content"
143 android:
layout_height=
"wrap_content"
144 android:
text=
"@string/ssl_validator_label_O"
145 android:
textAppearance=
"?android:attr/textAppearanceSmall"
149 android:
id=
"@+id/value_subject_O"
150 android:
layout_width=
"wrap_content"
151 android:
layout_height=
"wrap_content"
152 android:
paddingBottom=
"5dp"
154 android:
textAppearance=
"?android:attr/textAppearanceSmall"
158 android:
id=
"@+id/label_subject_OU"
159 android:
layout_width=
"wrap_content"
160 android:
layout_height=
"wrap_content"
161 android:
text=
"@string/ssl_validator_label_OU"
162 android:
textAppearance=
"?android:attr/textAppearanceSmall"
166 android:
id=
"@+id/value_subject_OU"
167 android:
layout_width=
"wrap_content"
168 android:
layout_height=
"wrap_content"
169 android:
paddingBottom=
"5dp"
171 android:
textAppearance=
"?android:attr/textAppearanceSmall"
175 android:
id=
"@+id/label_subject_ST"
176 android:
layout_width=
"wrap_content"
177 android:
layout_height=
"wrap_content"
178 android:
text=
"@string/ssl_validator_label_ST"
179 android:
textAppearance=
"?android:attr/textAppearanceSmall"
183 android:
id=
"@+id/value_subject_ST"
184 android:
layout_width=
"wrap_content"
185 android:
layout_height=
"wrap_content"
186 android:
paddingBottom=
"5dp"
188 android:
textAppearance=
"?android:attr/textAppearanceSmall"
192 android:
id=
"@+id/label_subject_C"
193 android:
layout_width=
"wrap_content"
194 android:
layout_height=
"wrap_content"
195 android:
text=
"@string/ssl_validator_label_C"
196 android:
textAppearance=
"?android:attr/textAppearanceSmall"
200 android:
id=
"@+id/value_subject_C"
201 android:
layout_width=
"wrap_content"
202 android:
layout_height=
"wrap_content"
203 android:
paddingBottom=
"5dp"
205 android:
textAppearance=
"?android:attr/textAppearanceSmall"
209 android:
id=
"@+id/label_subject_L"
210 android:
layout_width=
"wrap_content"
211 android:
layout_height=
"wrap_content"
212 android:
text=
"@string/ssl_validator_label_L"
213 android:
textAppearance=
"?android:attr/textAppearanceSmall"
217 android:
id=
"@+id/value_subject_L"
218 android:
layout_width=
"wrap_content"
219 android:
layout_height=
"wrap_content"
220 android:
paddingBottom=
"5dp"
222 android:
textAppearance=
"?android:attr/textAppearanceSmall"
227 android:
id=
"@+id/label_issuer"
228 android:
layout_width=
"wrap_content"
229 android:
layout_height=
"wrap_content"
230 android:
paddingBottom=
"5dp"
231 android:
text=
"@string/ssl_validator_label_issuer"
232 android:
textAppearance=
"?android:attr/textAppearanceMedium"
236 android:
id=
"@+id/label_issuer_CN"
237 android:
layout_width=
"wrap_content"
238 android:
layout_height=
"wrap_content"
239 android:
text=
"@string/ssl_validator_label_CN"
240 android:
textAppearance=
"?android:attr/textAppearanceSmall"
244 android:
id=
"@+id/value_issuer_CN"
245 android:
layout_width=
"wrap_content"
246 android:
layout_height=
"wrap_content"
247 android:
paddingBottom=
"5dp"
249 android:
textAppearance=
"?android:attr/textAppearanceSmall"
253 android:
id=
"@+id/label_issuer_O"
254 android:
layout_width=
"wrap_content"
255 android:
layout_height=
"wrap_content"
256 android:
text=
"@string/ssl_validator_label_O"
257 android:
textAppearance=
"?android:attr/textAppearanceSmall"
261 android:
id=
"@+id/value_issuer_O"
262 android:
layout_width=
"wrap_content"
263 android:
layout_height=
"wrap_content"
264 android:
paddingBottom=
"5dp"
266 android:
textAppearance=
"?android:attr/textAppearanceSmall"
270 android:
id=
"@+id/label_issuer_OU"
271 android:
layout_width=
"wrap_content"
272 android:
layout_height=
"wrap_content"
273 android:
text=
"@string/ssl_validator_label_OU"
274 android:
textAppearance=
"?android:attr/textAppearanceSmall"
278 android:
id=
"@+id/value_issuer_OU"
279 android:
layout_width=
"wrap_content"
280 android:
layout_height=
"wrap_content"
281 android:
paddingBottom=
"5dp"
283 android:
textAppearance=
"?android:attr/textAppearanceSmall"
287 android:
id=
"@+id/label_issuer_ST"
288 android:
layout_width=
"wrap_content"
289 android:
layout_height=
"wrap_content"
290 android:
text=
"@string/ssl_validator_label_ST"
291 android:
textAppearance=
"?android:attr/textAppearanceSmall"
295 android:
id=
"@+id/value_issuer_ST"
296 android:
layout_width=
"wrap_content"
297 android:
layout_height=
"wrap_content"
298 android:
paddingBottom=
"5dp"
300 android:
textAppearance=
"?android:attr/textAppearanceSmall"
304 android:
id=
"@+id/label_issuer_C"
305 android:
layout_width=
"wrap_content"
306 android:
layout_height=
"wrap_content"
307 android:
text=
"@string/ssl_validator_label_C"
308 android:
textAppearance=
"?android:attr/textAppearanceSmall"
312 android:
id=
"@+id/value_issuer_C"
313 android:
layout_width=
"wrap_content"
314 android:
layout_height=
"wrap_content"
315 android:
paddingBottom=
"5dp"
317 android:
textAppearance=
"?android:attr/textAppearanceSmall"
321 android:
id=
"@+id/label_issuer_L"
322 android:
layout_width=
"wrap_content"
323 android:
layout_height=
"wrap_content"
324 android:
text=
"@string/ssl_validator_label_L"
325 android:
textAppearance=
"?android:attr/textAppearanceSmall"
329 android:
id=
"@+id/value_issuer_L"
330 android:
layout_width=
"wrap_content"
331 android:
layout_height=
"wrap_content"
332 android:
paddingBottom=
"5dp"
334 android:
textAppearance=
"?android:attr/textAppearanceSmall"
338 android:
id=
"@+id/label_validity"
339 android:
layout_width=
"wrap_content"
340 android:
layout_height=
"wrap_content"
341 android:
paddingBottom=
"5dp"
342 android:
text=
"@string/ssl_validator_label_validity"
343 android:
textAppearance=
"?android:attr/textAppearanceMedium"
347 android:
id=
"@+id/label_validity_from"
348 android:
layout_width=
"wrap_content"
349 android:
layout_height=
"wrap_content"
350 android:
text=
"@string/ssl_validator_label_validity_from"
351 android:
textAppearance=
"?android:attr/textAppearanceSmall"
355 android:
id=
"@+id/value_validity_from"
356 android:
layout_width=
"wrap_content"
357 android:
layout_height=
"wrap_content"
358 android:
paddingBottom=
"5dp"
360 android:
textAppearance=
"?android:attr/textAppearanceSmall"
364 android:
id=
"@+id/label_validity_to"
365 android:
layout_width=
"wrap_content"
366 android:
layout_height=
"wrap_content"
367 android:
text=
"@string/ssl_validator_label_validity_to"
368 android:
textAppearance=
"?android:attr/textAppearanceSmall"
372 android:
id=
"@+id/value_validity_to"
373 android:
layout_width=
"wrap_content"
374 android:
layout_height=
"wrap_content"
375 android:
paddingBottom=
"5dp"
377 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"
409 android:
id=
"@+id/value_signature"
410 android:
layout_width=
"wrap_content"
411 android:
layout_height=
"wrap_content"
412 android:
paddingBottom=
"5dp"
414 android:
textAppearance=
"?android:attr/textAppearanceSmall"
422 android:
id=
"@+id/question"
423 android:
layout_width=
"wrap_content"
424 android:
layout_height=
"wrap_content"
425 android:
layout_weight=
"0"
426 android:
paddingTop=
"@dimen/standard_padding"
427 android:
text=
"@string/ssl_validator_question"
428 android:
textAppearance=
"?android:attr/textAppearanceMedium"
433 android:
layout_width=
"match_parent"
434 android:
layout_height=
"wrap_content"
435 android:
gravity=
"center" >
437 <android.support.v7.widget.AppCompatButton
438 android:
id=
"@+id/cancel"
439 style=
"@style/ownCloud.Button"
440 android:
layout_width=
"0dp"
441 android:
layout_height=
"wrap_content"
442 android:
layout_weight=
"1"
443 android:
text=
"@string/common_cancel" />
445 <android.support.v7.widget.AppCompatButton
446 android:
id=
"@+id/details_btn"
447 style=
"@style/ownCloud.Button"
448 android:
layout_width=
"0dp"
449 android:
layout_height=
"wrap_content"
450 android:
layout_weight=
"1"
451 android:
text=
"@string/ssl_validator_btn_details_see" />
453 <android.support.v7.widget.AppCompatButton
455 style=
"@style/ownCloud.Button"
456 android:
layout_width=
"0dp"
457 android:
layout_height=
"wrap_content"
458 android:
layout_weight=
"1"
459 android:
text=
"@string/common_ok" />