1 <?xml version=
"1.0" encoding=
"utf-8"?>
3 ownCloud Android client application
5 Copyright (C)
2012-
2013 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:
orientation=
"vertical" >
27 android:
id=
"@+id/header"
28 android:
layout_width=
"wrap_content"
29 android:
layout_height=
"wrap_content"
30 android:
layout_weight=
"0"
31 android:
text=
"@string/ssl_validator_header"
33 android:
textAppearance=
"?android:attr/textAppearanceMedium"
37 android:
id=
"@+id/reason_cert_not_trusted"
38 android:
layout_width=
"wrap_content"
39 android:
layout_height=
"wrap_content"
40 android:
layout_weight=
"0"
41 android:
layout_gravity=
"left"
42 android:
paddingLeft=
"20dp"
43 android:
text=
"@string/ssl_validator_reason_cert_not_trusted"
44 android:
textAppearance=
"?android:attr/textAppearanceSmall"
49 android:
id=
"@+id/reason_cert_expired"
50 android:
layout_width=
"wrap_content"
51 android:
layout_height=
"wrap_content"
52 android:
layout_gravity=
"left"
53 android:
paddingLeft=
"20dp"
54 android:
text=
"@string/ssl_validator_reason_cert_expired"
55 android:
textAppearance=
"?android:attr/textAppearanceSmall"
59 android:
id=
"@+id/reason_cert_not_yet_valid"
60 android:
layout_width=
"wrap_content"
61 android:
layout_height=
"wrap_content"
62 android:
layout_gravity=
"left"
63 android:
paddingLeft=
"20dp"
64 android:
text=
"@string/ssl_validator_reason_cert_not_yet_valid"
65 android:
textAppearance=
"?android:attr/textAppearanceSmall"
69 android:
id=
"@+id/reason_hostname_not_verified"
70 android:
layout_width=
"wrap_content"
71 android:
layout_height=
"wrap_content"
72 android:
layout_gravity=
"left"
73 android:
paddingLeft=
"20dp"
74 android:
text=
"@string/ssl_validator_reason_hostname_not_verified"
75 android:
textAppearance=
"?android:attr/textAppearanceSmall"
79 android:
id=
"@+id/details_scroll"
80 android:
visibility=
"gone"
81 android:
padding=
"20dp"
82 android:
layout_width=
"match_parent"
83 android:
layout_height=
"0dp"
84 android:
layout_weight=
"1"
88 android:
id=
"@+id/details_view"
89 android:
layout_width=
"wrap_content"
90 android:
layout_height=
"wrap_content"
91 android:
gravity=
"left"
92 android:
orientation=
"vertical" >
95 android:
id=
"@+id/null_cert"
96 android:
layout_width=
"wrap_content"
97 android:
layout_height=
"wrap_content"
98 android:
layout_gravity=
"left"
99 android:
paddingLeft=
"20dp"
100 android:
text=
"@string/ssl_validator_null_cert"
101 android:
textAppearance=
"?android:attr/textAppearanceSmall" />
104 android:
id=
"@+id/label_subject"
105 android:
layout_width=
"wrap_content"
106 android:
layout_height=
"wrap_content"
107 android:
paddingBottom=
"5dp"
108 android:
text=
"@string/ssl_validator_label_subject"
109 android:
textAppearance=
"?android:attr/textAppearanceMedium"
113 android:
id=
"@+id/label_subject_CN"
114 android:
layout_width=
"wrap_content"
115 android:
layout_height=
"wrap_content"
116 android:
text=
"@string/ssl_validator_label_CN"
117 android:
textAppearance=
"?android:attr/textAppearanceSmall"
121 android:
id=
"@+id/value_subject_CN"
122 android:
layout_width=
"wrap_content"
123 android:
layout_height=
"wrap_content"
124 android:
paddingBottom=
"5dp"
126 android:
textAppearance=
"?android:attr/textAppearanceSmall"
130 android:
id=
"@+id/label_subject_O"
131 android:
layout_width=
"wrap_content"
132 android:
layout_height=
"wrap_content"
133 android:
text=
"@string/ssl_validator_label_O"
134 android:
textAppearance=
"?android:attr/textAppearanceSmall"
138 android:
id=
"@+id/value_subject_O"
139 android:
layout_width=
"wrap_content"
140 android:
layout_height=
"wrap_content"
141 android:
paddingBottom=
"5dp"
143 android:
textAppearance=
"?android:attr/textAppearanceSmall"
147 android:
id=
"@+id/label_subject_OU"
148 android:
layout_width=
"wrap_content"
149 android:
layout_height=
"wrap_content"
150 android:
text=
"@string/ssl_validator_label_OU"
151 android:
textAppearance=
"?android:attr/textAppearanceSmall"
155 android:
id=
"@+id/value_subject_OU"
156 android:
layout_width=
"wrap_content"
157 android:
layout_height=
"wrap_content"
158 android:
paddingBottom=
"5dp"
160 android:
textAppearance=
"?android:attr/textAppearanceSmall"
164 android:
id=
"@+id/label_subject_ST"
165 android:
layout_width=
"wrap_content"
166 android:
layout_height=
"wrap_content"
167 android:
text=
"@string/ssl_validator_label_ST"
168 android:
textAppearance=
"?android:attr/textAppearanceSmall"
172 android:
id=
"@+id/value_subject_ST"
173 android:
layout_width=
"wrap_content"
174 android:
layout_height=
"wrap_content"
175 android:
paddingBottom=
"5dp"
177 android:
textAppearance=
"?android:attr/textAppearanceSmall"
181 android:
id=
"@+id/label_subject_C"
182 android:
layout_width=
"wrap_content"
183 android:
layout_height=
"wrap_content"
184 android:
text=
"@string/ssl_validator_label_C"
185 android:
textAppearance=
"?android:attr/textAppearanceSmall"
189 android:
id=
"@+id/value_subject_C"
190 android:
layout_width=
"wrap_content"
191 android:
layout_height=
"wrap_content"
192 android:
paddingBottom=
"5dp"
194 android:
textAppearance=
"?android:attr/textAppearanceSmall"
198 android:
id=
"@+id/label_subject_L"
199 android:
layout_width=
"wrap_content"
200 android:
layout_height=
"wrap_content"
201 android:
text=
"@string/ssl_validator_label_L"
202 android:
textAppearance=
"?android:attr/textAppearanceSmall"
206 android:
id=
"@+id/value_subject_L"
207 android:
layout_width=
"wrap_content"
208 android:
layout_height=
"wrap_content"
209 android:
paddingBottom=
"5dp"
211 android:
textAppearance=
"?android:attr/textAppearanceSmall"
216 android:
id=
"@+id/label_issuer"
217 android:
layout_width=
"wrap_content"
218 android:
layout_height=
"wrap_content"
219 android:
paddingBottom=
"5dp"
220 android:
text=
"@string/ssl_validator_label_issuer"
221 android:
textAppearance=
"?android:attr/textAppearanceMedium"
225 android:
id=
"@+id/label_issuer_CN"
226 android:
layout_width=
"wrap_content"
227 android:
layout_height=
"wrap_content"
228 android:
text=
"@string/ssl_validator_label_CN"
229 android:
textAppearance=
"?android:attr/textAppearanceSmall"
233 android:
id=
"@+id/value_issuer_CN"
234 android:
layout_width=
"wrap_content"
235 android:
layout_height=
"wrap_content"
236 android:
paddingBottom=
"5dp"
238 android:
textAppearance=
"?android:attr/textAppearanceSmall"
242 android:
id=
"@+id/label_issuer_O"
243 android:
layout_width=
"wrap_content"
244 android:
layout_height=
"wrap_content"
245 android:
text=
"@string/ssl_validator_label_O"
246 android:
textAppearance=
"?android:attr/textAppearanceSmall"
250 android:
id=
"@+id/value_issuer_O"
251 android:
layout_width=
"wrap_content"
252 android:
layout_height=
"wrap_content"
253 android:
paddingBottom=
"5dp"
255 android:
textAppearance=
"?android:attr/textAppearanceSmall"
259 android:
id=
"@+id/label_issuer_OU"
260 android:
layout_width=
"wrap_content"
261 android:
layout_height=
"wrap_content"
262 android:
text=
"@string/ssl_validator_label_OU"
263 android:
textAppearance=
"?android:attr/textAppearanceSmall"
267 android:
id=
"@+id/value_issuer_OU"
268 android:
layout_width=
"wrap_content"
269 android:
layout_height=
"wrap_content"
270 android:
paddingBottom=
"5dp"
272 android:
textAppearance=
"?android:attr/textAppearanceSmall"
276 android:
id=
"@+id/label_issuer_ST"
277 android:
layout_width=
"wrap_content"
278 android:
layout_height=
"wrap_content"
279 android:
text=
"@string/ssl_validator_label_ST"
280 android:
textAppearance=
"?android:attr/textAppearanceSmall"
284 android:
id=
"@+id/value_issuer_ST"
285 android:
layout_width=
"wrap_content"
286 android:
layout_height=
"wrap_content"
287 android:
paddingBottom=
"5dp"
289 android:
textAppearance=
"?android:attr/textAppearanceSmall"
293 android:
id=
"@+id/label_issuer_C"
294 android:
layout_width=
"wrap_content"
295 android:
layout_height=
"wrap_content"
296 android:
text=
"@string/ssl_validator_label_C"
297 android:
textAppearance=
"?android:attr/textAppearanceSmall"
301 android:
id=
"@+id/value_issuer_C"
302 android:
layout_width=
"wrap_content"
303 android:
layout_height=
"wrap_content"
304 android:
paddingBottom=
"5dp"
306 android:
textAppearance=
"?android:attr/textAppearanceSmall"
310 android:
id=
"@+id/label_issuer_L"
311 android:
layout_width=
"wrap_content"
312 android:
layout_height=
"wrap_content"
313 android:
text=
"@string/ssl_validator_label_L"
314 android:
textAppearance=
"?android:attr/textAppearanceSmall"
318 android:
id=
"@+id/value_issuer_L"
319 android:
layout_width=
"wrap_content"
320 android:
layout_height=
"wrap_content"
321 android:
paddingBottom=
"5dp"
323 android:
textAppearance=
"?android:attr/textAppearanceSmall"
327 android:
id=
"@+id/label_validity"
328 android:
layout_width=
"wrap_content"
329 android:
layout_height=
"wrap_content"
330 android:
paddingBottom=
"5dp"
331 android:
text=
"@string/ssl_validator_label_validity"
332 android:
textAppearance=
"?android:attr/textAppearanceMedium"
336 android:
id=
"@+id/label_validity_from"
337 android:
layout_width=
"wrap_content"
338 android:
layout_height=
"wrap_content"
339 android:
text=
"@string/ssl_validator_label_validity_from"
340 android:
textAppearance=
"?android:attr/textAppearanceSmall"
344 android:
id=
"@+id/value_validity_from"
345 android:
layout_width=
"wrap_content"
346 android:
layout_height=
"wrap_content"
347 android:
paddingBottom=
"5dp"
349 android:
textAppearance=
"?android:attr/textAppearanceSmall"
353 android:
id=
"@+id/label_validity_to"
354 android:
layout_width=
"wrap_content"
355 android:
layout_height=
"wrap_content"
356 android:
text=
"@string/ssl_validator_label_validity_to"
357 android:
textAppearance=
"?android:attr/textAppearanceSmall"
361 android:
id=
"@+id/value_validity_to"
362 android:
layout_width=
"wrap_content"
363 android:
layout_height=
"wrap_content"
364 android:
paddingBottom=
"5dp"
366 android:
textAppearance=
"?android:attr/textAppearanceSmall"
371 android:
id=
"@+id/label_signature"
372 android:
layout_width=
"wrap_content"
373 android:
layout_height=
"wrap_content"
374 android:
paddingBottom=
"5dp"
375 android:
text=
"@string/ssl_validator_label_signature"
376 android:
textAppearance=
"?android:attr/textAppearanceMedium"
380 android:
id=
"@+id/label_signature_algorithm"
381 android:
layout_width=
"wrap_content"
382 android:
layout_height=
"wrap_content"
383 android:
text=
"@string/ssl_validator_label_signature_algorithm"
384 android:
textAppearance=
"?android:attr/textAppearanceSmall"
388 android:
id=
"@+id/value_signature_algorithm"
389 android:
layout_width=
"wrap_content"
390 android:
layout_height=
"wrap_content"
391 android:
paddingBottom=
"5dp"
393 android:
textAppearance=
"?android:attr/textAppearanceSmall"
398 android:
id=
"@+id/value_signature"
399 android:
layout_width=
"wrap_content"
400 android:
layout_height=
"wrap_content"
401 android:
paddingBottom=
"5dp"
403 android:
textAppearance=
"?android:attr/textAppearanceSmall"
411 android:
id=
"@+id/question"
412 android:
layout_width=
"wrap_content"
413 android:
layout_height=
"wrap_content"
414 android:
layout_weight=
"0"
415 android:
padding=
"5dp"
416 android:
text=
"@string/ssl_validator_question"
417 android:
textAppearance=
"?android:attr/textAppearanceMedium"
422 android:
layout_width=
"match_parent"
423 android:
layout_height=
"wrap_content"
424 android:
layout_weight=
"0"
425 android:
gravity=
"center" >
428 android:
id=
"@+id/cancel"
429 android:
layout_width=
"0dp"
430 android:
layout_height=
"wrap_content"
431 android:
layout_weight=
"1"
432 android:
text=
"@string/common_cancel" />
435 android:
id=
"@+id/details_btn"
436 android:
layout_width=
"0dp"
437 android:
layout_height=
"wrap_content"
438 android:
layout_weight=
"1"
439 android:
text=
"@string/ssl_validator_btn_details_see" />
443 android:
layout_width=
"0dp"
444 android:
layout_height=
"wrap_content"
445 android:
layout_weight=
"1"
446 android:
text=
"@string/common_ok" />