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:
orientation=
"vertical"
25 android:
padding=
"16dp">
28 android:
id=
"@+id/header"
29 android:
layout_width=
"wrap_content"
30 android:
layout_height=
"wrap_content"
31 android:
text=
"@string/ssl_validator_header"
32 android:
paddingBottom=
"16dp"
33 android:
textAppearance=
"?android:attr/textAppearanceMedium"
34 android:
textColor=
"@color/black"
38 android:
id=
"@+id/reason_cert_not_trusted"
39 android:
layout_width=
"wrap_content"
40 android:
layout_height=
"wrap_content"
41 android:
layout_gravity=
"left"
42 android:
paddingLeft=
"8dp"
43 android:
text=
"@string/ssl_validator_reason_cert_not_trusted"
44 android:
textAppearance=
"?android:attr/textAppearanceSmall"
48 android:
id=
"@+id/reason_cert_expired"
49 android:
layout_width=
"wrap_content"
50 android:
layout_height=
"wrap_content"
51 android:
layout_gravity=
"left"
52 android:
paddingLeft=
"8dp"
53 android:
text=
"@string/ssl_validator_reason_cert_expired"
54 android:
textAppearance=
"?android:attr/textAppearanceSmall"
58 android:
id=
"@+id/reason_cert_not_yet_valid"
59 android:
layout_width=
"wrap_content"
60 android:
layout_height=
"wrap_content"
61 android:
layout_gravity=
"left"
62 android:
paddingLeft=
"8dp"
63 android:
text=
"@string/ssl_validator_reason_cert_not_yet_valid"
64 android:
textAppearance=
"?android:attr/textAppearanceSmall"
68 android:
id=
"@+id/reason_hostname_not_verified"
69 android:
layout_width=
"wrap_content"
70 android:
layout_height=
"wrap_content"
71 android:
layout_gravity=
"left"
72 android:
paddingLeft=
"8dp"
73 android:
text=
"@string/ssl_validator_reason_hostname_not_verified"
74 android:
textAppearance=
"?android:attr/textAppearanceSmall"
78 android:
id=
"@+id/details_scroll"
79 android:
visibility=
"gone"
81 android:
layout_width=
"wrap_content"
82 android:
layout_height=
"180dp">
85 android:
id=
"@+id/details_view"
86 android:
layout_width=
"wrap_content"
87 android:
layout_height=
"wrap_content"
88 android:
gravity=
"left"
89 android:
orientation=
"vertical" >
92 android:
id=
"@+id/label_subject"
93 android:
layout_width=
"wrap_content"
94 android:
layout_height=
"wrap_content"
95 android:
paddingBottom=
"5dp"
96 android:
text=
"@string/ssl_validator_label_subject"
97 android:
textAppearance=
"?android:attr/textAppearanceMedium"
101 android:
id=
"@+id/label_subject_CN"
102 android:
layout_width=
"wrap_content"
103 android:
layout_height=
"wrap_content"
104 android:
text=
"@string/ssl_validator_label_CN"
105 android:
textAppearance=
"?android:attr/textAppearanceSmall"
109 android:
id=
"@+id/value_subject_CN"
110 android:
layout_width=
"wrap_content"
111 android:
layout_height=
"wrap_content"
112 android:
paddingBottom=
"5dp"
114 android:
textAppearance=
"?android:attr/textAppearanceSmall"
118 android:
id=
"@+id/label_subject_O"
119 android:
layout_width=
"wrap_content"
120 android:
layout_height=
"wrap_content"
121 android:
text=
"@string/ssl_validator_label_O"
122 android:
textAppearance=
"?android:attr/textAppearanceSmall"
126 android:
id=
"@+id/value_subject_O"
127 android:
layout_width=
"wrap_content"
128 android:
layout_height=
"wrap_content"
129 android:
paddingBottom=
"5dp"
131 android:
textAppearance=
"?android:attr/textAppearanceSmall"
135 android:
id=
"@+id/label_subject_OU"
136 android:
layout_width=
"wrap_content"
137 android:
layout_height=
"wrap_content"
138 android:
text=
"@string/ssl_validator_label_OU"
139 android:
textAppearance=
"?android:attr/textAppearanceSmall"
143 android:
id=
"@+id/value_subject_OU"
144 android:
layout_width=
"wrap_content"
145 android:
layout_height=
"wrap_content"
146 android:
paddingBottom=
"5dp"
148 android:
textAppearance=
"?android:attr/textAppearanceSmall"
152 android:
id=
"@+id/label_subject_ST"
153 android:
layout_width=
"wrap_content"
154 android:
layout_height=
"wrap_content"
155 android:
text=
"@string/ssl_validator_label_ST"
156 android:
textAppearance=
"?android:attr/textAppearanceSmall"
160 android:
id=
"@+id/value_subject_ST"
161 android:
layout_width=
"wrap_content"
162 android:
layout_height=
"wrap_content"
163 android:
paddingBottom=
"5dp"
165 android:
textAppearance=
"?android:attr/textAppearanceSmall"
169 android:
id=
"@+id/label_subject_C"
170 android:
layout_width=
"wrap_content"
171 android:
layout_height=
"wrap_content"
172 android:
text=
"@string/ssl_validator_label_C"
173 android:
textAppearance=
"?android:attr/textAppearanceSmall"
177 android:
id=
"@+id/value_subject_C"
178 android:
layout_width=
"wrap_content"
179 android:
layout_height=
"wrap_content"
180 android:
paddingBottom=
"5dp"
182 android:
textAppearance=
"?android:attr/textAppearanceSmall"
186 android:
id=
"@+id/label_subject_L"
187 android:
layout_width=
"wrap_content"
188 android:
layout_height=
"wrap_content"
189 android:
text=
"@string/ssl_validator_label_L"
190 android:
textAppearance=
"?android:attr/textAppearanceSmall"
194 android:
id=
"@+id/value_subject_L"
195 android:
layout_width=
"wrap_content"
196 android:
layout_height=
"wrap_content"
197 android:
paddingBottom=
"5dp"
199 android:
textAppearance=
"?android:attr/textAppearanceSmall"
204 android:
id=
"@+id/label_issuer"
205 android:
layout_width=
"wrap_content"
206 android:
layout_height=
"wrap_content"
207 android:
paddingBottom=
"5dp"
208 android:
text=
"@string/ssl_validator_label_issuer"
209 android:
textAppearance=
"?android:attr/textAppearanceMedium"
213 android:
id=
"@+id/label_issuer_CN"
214 android:
layout_width=
"wrap_content"
215 android:
layout_height=
"wrap_content"
216 android:
text=
"@string/ssl_validator_label_CN"
217 android:
textAppearance=
"?android:attr/textAppearanceSmall"
221 android:
id=
"@+id/value_issuer_CN"
222 android:
layout_width=
"wrap_content"
223 android:
layout_height=
"wrap_content"
224 android:
paddingBottom=
"5dp"
226 android:
textAppearance=
"?android:attr/textAppearanceSmall"
230 android:
id=
"@+id/label_issuer_O"
231 android:
layout_width=
"wrap_content"
232 android:
layout_height=
"wrap_content"
233 android:
text=
"@string/ssl_validator_label_O"
234 android:
textAppearance=
"?android:attr/textAppearanceSmall"
238 android:
id=
"@+id/value_issuer_O"
239 android:
layout_width=
"wrap_content"
240 android:
layout_height=
"wrap_content"
241 android:
paddingBottom=
"5dp"
243 android:
textAppearance=
"?android:attr/textAppearanceSmall"
247 android:
id=
"@+id/label_issuer_OU"
248 android:
layout_width=
"wrap_content"
249 android:
layout_height=
"wrap_content"
250 android:
text=
"@string/ssl_validator_label_OU"
251 android:
textAppearance=
"?android:attr/textAppearanceSmall"
255 android:
id=
"@+id/value_issuer_OU"
256 android:
layout_width=
"wrap_content"
257 android:
layout_height=
"wrap_content"
258 android:
paddingBottom=
"5dp"
260 android:
textAppearance=
"?android:attr/textAppearanceSmall"
264 android:
id=
"@+id/label_issuer_ST"
265 android:
layout_width=
"wrap_content"
266 android:
layout_height=
"wrap_content"
267 android:
text=
"@string/ssl_validator_label_ST"
268 android:
textAppearance=
"?android:attr/textAppearanceSmall"
272 android:
id=
"@+id/value_issuer_ST"
273 android:
layout_width=
"wrap_content"
274 android:
layout_height=
"wrap_content"
275 android:
paddingBottom=
"5dp"
277 android:
textAppearance=
"?android:attr/textAppearanceSmall"
281 android:
id=
"@+id/label_issuer_C"
282 android:
layout_width=
"wrap_content"
283 android:
layout_height=
"wrap_content"
284 android:
text=
"@string/ssl_validator_label_C"
285 android:
textAppearance=
"?android:attr/textAppearanceSmall"
289 android:
id=
"@+id/value_issuer_C"
290 android:
layout_width=
"wrap_content"
291 android:
layout_height=
"wrap_content"
292 android:
paddingBottom=
"5dp"
294 android:
textAppearance=
"?android:attr/textAppearanceSmall"
298 android:
id=
"@+id/label_issuer_L"
299 android:
layout_width=
"wrap_content"
300 android:
layout_height=
"wrap_content"
301 android:
text=
"@string/ssl_validator_label_L"
302 android:
textAppearance=
"?android:attr/textAppearanceSmall"
306 android:
id=
"@+id/value_issuer_L"
307 android:
layout_width=
"wrap_content"
308 android:
layout_height=
"wrap_content"
309 android:
paddingBottom=
"5dp"
311 android:
textAppearance=
"?android:attr/textAppearanceSmall"
315 android:
id=
"@+id/label_validity"
316 android:
layout_width=
"wrap_content"
317 android:
layout_height=
"wrap_content"
318 android:
paddingBottom=
"5dp"
319 android:
text=
"@string/ssl_validator_label_validity"
320 android:
textAppearance=
"?android:attr/textAppearanceMedium"
324 android:
id=
"@+id/label_validity_from"
325 android:
layout_width=
"wrap_content"
326 android:
layout_height=
"wrap_content"
327 android:
text=
"@string/ssl_validator_label_validity_from"
328 android:
textAppearance=
"?android:attr/textAppearanceSmall"
332 android:
id=
"@+id/value_validity_from"
333 android:
layout_width=
"wrap_content"
334 android:
layout_height=
"wrap_content"
335 android:
paddingBottom=
"5dp"
337 android:
textAppearance=
"?android:attr/textAppearanceSmall"
341 android:
id=
"@+id/label_validity_to"
342 android:
layout_width=
"wrap_content"
343 android:
layout_height=
"wrap_content"
344 android:
text=
"@string/ssl_validator_label_validity_to"
345 android:
textAppearance=
"?android:attr/textAppearanceSmall"
349 android:
id=
"@+id/value_validity_to"
350 android:
layout_width=
"wrap_content"
351 android:
layout_height=
"wrap_content"
352 android:
paddingBottom=
"5dp"
354 android:
textAppearance=
"?android:attr/textAppearanceSmall"
359 android:
id=
"@+id/label_signature"
360 android:
layout_width=
"wrap_content"
361 android:
layout_height=
"wrap_content"
362 android:
paddingBottom=
"5dp"
363 android:
text=
"@string/ssl_validator_label_signature"
364 android:
textAppearance=
"?android:attr/textAppearanceMedium"
368 android:
id=
"@+id/label_signature_algorithm"
369 android:
layout_width=
"wrap_content"
370 android:
layout_height=
"wrap_content"
371 android:
text=
"@string/ssl_validator_label_signature_algorithm"
372 android:
textAppearance=
"?android:attr/textAppearanceSmall"
376 android:
id=
"@+id/value_signature_algorithm"
377 android:
layout_width=
"wrap_content"
378 android:
layout_height=
"wrap_content"
379 android:
paddingBottom=
"5dp"
381 android:
textAppearance=
"?android:attr/textAppearanceSmall"
386 android:
id=
"@+id/value_signature"
387 android:
layout_width=
"wrap_content"
388 android:
layout_height=
"wrap_content"
389 android:
paddingBottom=
"5dp"
391 android:
textAppearance=
"?android:attr/textAppearanceSmall"
399 android:
id=
"@+id/question"
400 android:
layout_width=
"wrap_content"
401 android:
layout_height=
"wrap_content"
402 android:
paddingTop=
"16dp"
403 android:
text=
"@string/ssl_validator_question"
404 android:
textAppearance=
"?android:attr/textAppearanceMedium"
409 android:
layout_width=
"match_parent"
410 android:
layout_height=
"wrap_content"
411 android:
gravity=
"center" >
413 <android.support.v7.widget.AppCompatButton
414 android:
id=
"@+id/cancel"
415 style=
"@style/Button.Borderless"
416 android:
layout_width=
"0dp"
417 android:
layout_height=
"wrap_content"
418 android:
layout_weight=
"1"
419 android:
text=
"@string/common_no" />
421 <android.support.v7.widget.AppCompatButton
422 android:
id=
"@+id/details_btn"
423 style=
"@style/Button.Borderless"
424 android:
layout_width=
"0dp"
425 android:
layout_height=
"wrap_content"
426 android:
layout_weight=
"2"
427 android:
text=
"@string/ssl_validator_btn_details_see" />
429 <android.support.v7.widget.AppCompatButton
431 style=
"@style/Button.Borderless"
432 android:
layout_width=
"0dp"
433 android:
layout_height=
"wrap_content"
434 android:
layout_weight=
"1"
435 android:
text=
"@string/common_yes" />