8fda8c271df0edae6a58e3b931adcbddb48b0cdc
[pub/Android/ownCloud.git] / res / layout / ssl_validator_layout.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 ownCloud Android client application
4
5 Copyright (C) 2015 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 android:padding="@dimen/standard_padding">
26
27 <TextView
28 android:id="@+id/header"
29 android:layout_width="wrap_content"
30 android:layout_height="wrap_content"
31 android:paddingBottom="@dimen/standard_padding"
32 android:text="@string/ssl_validator_header"
33 android:textAppearance="?android:attr/textAppearanceMedium"
34 />
35
36 <TextView
37 android:id="@+id/reason_cert_not_trusted"
38 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"
40 android:layout_gravity="left"
41 android:paddingLeft="20dp"
42 android:text="@string/ssl_validator_reason_cert_not_trusted"
43 android:textAppearance="?android:attr/textAppearanceSmall"
44 />
45
46 <TextView
47 android:id="@+id/reason_cert_expired"
48 android:layout_width="wrap_content"
49 android:layout_height="wrap_content"
50 android:layout_gravity="left"
51 android:paddingLeft="20dp"
52 android:text="@string/ssl_validator_reason_cert_expired"
53 android:textAppearance="?android:attr/textAppearanceSmall"
54 />
55
56 <TextView
57 android:id="@+id/reason_cert_not_yet_valid"
58 android:layout_width="wrap_content"
59 android:layout_height="wrap_content"
60 android:layout_gravity="left"
61 android:paddingLeft="20dp"
62 android:text="@string/ssl_validator_reason_cert_not_yet_valid"
63 android:textAppearance="?android:attr/textAppearanceSmall"
64 />
65
66 <TextView
67 android:id="@+id/reason_hostname_not_verified"
68 android:layout_width="wrap_content"
69 android:layout_height="wrap_content"
70 android:layout_gravity="left"
71 android:paddingLeft="20dp"
72 android:text="@string/ssl_validator_reason_hostname_not_verified"
73 android:textAppearance="?android:attr/textAppearanceSmall"
74 />
75
76 <ScrollView
77 android:id="@+id/details_scroll"
78 android:visibility="gone"
79 android:padding="20dp"
80 android:layout_width="wrap_content"
81 android:layout_height="180dp">
82
83 <LinearLayout
84 android:id="@+id/details_view"
85 android:layout_width="wrap_content"
86 android:layout_height="wrap_content"
87 android:gravity="left"
88 android:orientation="vertical" >
89
90 <TextView
91 android:id="@+id/label_subject"
92 android:layout_width="wrap_content"
93 android:layout_height="wrap_content"
94 android:paddingBottom="5dp"
95 android:text="@string/ssl_validator_label_subject"
96 android:textAppearance="?android:attr/textAppearanceMedium"
97 />
98
99 <TextView
100 android:id="@+id/label_subject_CN"
101 android:layout_width="wrap_content"
102 android:layout_height="wrap_content"
103 android:text="@string/ssl_validator_label_CN"
104 android:textAppearance="?android:attr/textAppearanceSmall"
105 />
106
107 <TextView
108 android:id="@+id/value_subject_CN"
109 android:layout_width="wrap_content"
110 android:layout_height="wrap_content"
111 android:paddingBottom="5dp"
112 android:text=""
113 android:textAppearance="?android:attr/textAppearanceSmall"
114 />
115
116 <TextView
117 android:id="@+id/label_subject_O"
118 android:layout_width="wrap_content"
119 android:layout_height="wrap_content"
120 android:text="@string/ssl_validator_label_O"
121 android:textAppearance="?android:attr/textAppearanceSmall"
122 />
123
124 <TextView
125 android:id="@+id/value_subject_O"
126 android:layout_width="wrap_content"
127 android:layout_height="wrap_content"
128 android:paddingBottom="5dp"
129 android:text=""
130 android:textAppearance="?android:attr/textAppearanceSmall"
131 />
132
133 <TextView
134 android:id="@+id/label_subject_OU"
135 android:layout_width="wrap_content"
136 android:layout_height="wrap_content"
137 android:text="@string/ssl_validator_label_OU"
138 android:textAppearance="?android:attr/textAppearanceSmall"
139 />
140
141 <TextView
142 android:id="@+id/value_subject_OU"
143 android:layout_width="wrap_content"
144 android:layout_height="wrap_content"
145 android:paddingBottom="5dp"
146 android:text=""
147 android:textAppearance="?android:attr/textAppearanceSmall"
148 />
149
150 <TextView
151 android:id="@+id/label_subject_ST"
152 android:layout_width="wrap_content"
153 android:layout_height="wrap_content"
154 android:text="@string/ssl_validator_label_ST"
155 android:textAppearance="?android:attr/textAppearanceSmall"
156 />
157
158 <TextView
159 android:id="@+id/value_subject_ST"
160 android:layout_width="wrap_content"
161 android:layout_height="wrap_content"
162 android:paddingBottom="5dp"
163 android:text=""
164 android:textAppearance="?android:attr/textAppearanceSmall"
165 />
166
167 <TextView
168 android:id="@+id/label_subject_C"
169 android:layout_width="wrap_content"
170 android:layout_height="wrap_content"
171 android:text="@string/ssl_validator_label_C"
172 android:textAppearance="?android:attr/textAppearanceSmall"
173 />
174
175 <TextView
176 android:id="@+id/value_subject_C"
177 android:layout_width="wrap_content"
178 android:layout_height="wrap_content"
179 android:paddingBottom="5dp"
180 android:text=""
181 android:textAppearance="?android:attr/textAppearanceSmall"
182 />
183
184 <TextView
185 android:id="@+id/label_subject_L"
186 android:layout_width="wrap_content"
187 android:layout_height="wrap_content"
188 android:text="@string/ssl_validator_label_L"
189 android:textAppearance="?android:attr/textAppearanceSmall"
190 />
191
192 <TextView
193 android:id="@+id/value_subject_L"
194 android:layout_width="wrap_content"
195 android:layout_height="wrap_content"
196 android:paddingBottom="5dp"
197 android:text=""
198 android:textAppearance="?android:attr/textAppearanceSmall"
199 />
200
201 <TextView
202 android:id="@+id/label_issuer"
203 android:layout_width="wrap_content"
204 android:layout_height="wrap_content"
205 android:paddingBottom="5dp"
206 android:text="@string/ssl_validator_label_issuer"
207 android:textAppearance="?android:attr/textAppearanceMedium"
208 />
209
210 <TextView
211 android:id="@+id/label_issuer_CN"
212 android:layout_width="wrap_content"
213 android:layout_height="wrap_content"
214 android:text="@string/ssl_validator_label_CN"
215 android:textAppearance="?android:attr/textAppearanceSmall"
216 />
217
218 <TextView
219 android:id="@+id/value_issuer_CN"
220 android:layout_width="wrap_content"
221 android:layout_height="wrap_content"
222 android:paddingBottom="5dp"
223 android:text=""
224 android:textAppearance="?android:attr/textAppearanceSmall"
225 />
226
227 <TextView
228 android:id="@+id/label_issuer_O"
229 android:layout_width="wrap_content"
230 android:layout_height="wrap_content"
231 android:text="@string/ssl_validator_label_O"
232 android:textAppearance="?android:attr/textAppearanceSmall"
233 />
234
235 <TextView
236 android:id="@+id/value_issuer_O"
237 android:layout_width="wrap_content"
238 android:layout_height="wrap_content"
239 android:paddingBottom="5dp"
240 android:text=""
241 android:textAppearance="?android:attr/textAppearanceSmall"
242 />
243
244 <TextView
245 android:id="@+id/label_issuer_OU"
246 android:layout_width="wrap_content"
247 android:layout_height="wrap_content"
248 android:text="@string/ssl_validator_label_OU"
249 android:textAppearance="?android:attr/textAppearanceSmall"
250 />
251
252 <TextView
253 android:id="@+id/value_issuer_OU"
254 android:layout_width="wrap_content"
255 android:layout_height="wrap_content"
256 android:paddingBottom="5dp"
257 android:text=""
258 android:textAppearance="?android:attr/textAppearanceSmall"
259 />
260
261 <TextView
262 android:id="@+id/label_issuer_ST"
263 android:layout_width="wrap_content"
264 android:layout_height="wrap_content"
265 android:text="@string/ssl_validator_label_ST"
266 android:textAppearance="?android:attr/textAppearanceSmall"
267 />
268
269 <TextView
270 android:id="@+id/value_issuer_ST"
271 android:layout_width="wrap_content"
272 android:layout_height="wrap_content"
273 android:paddingBottom="5dp"
274 android:text=""
275 android:textAppearance="?android:attr/textAppearanceSmall"
276 />
277
278 <TextView
279 android:id="@+id/label_issuer_C"
280 android:layout_width="wrap_content"
281 android:layout_height="wrap_content"
282 android:text="@string/ssl_validator_label_C"
283 android:textAppearance="?android:attr/textAppearanceSmall"
284 />
285
286 <TextView
287 android:id="@+id/value_issuer_C"
288 android:layout_width="wrap_content"
289 android:layout_height="wrap_content"
290 android:paddingBottom="5dp"
291 android:text=""
292 android:textAppearance="?android:attr/textAppearanceSmall"
293 />
294
295 <TextView
296 android:id="@+id/label_issuer_L"
297 android:layout_width="wrap_content"
298 android:layout_height="wrap_content"
299 android:text="@string/ssl_validator_label_L"
300 android:textAppearance="?android:attr/textAppearanceSmall"
301 />
302
303 <TextView
304 android:id="@+id/value_issuer_L"
305 android:layout_width="wrap_content"
306 android:layout_height="wrap_content"
307 android:paddingBottom="5dp"
308 android:text=""
309 android:textAppearance="?android:attr/textAppearanceSmall"
310 />
311
312 <TextView
313 android:id="@+id/label_validity"
314 android:layout_width="wrap_content"
315 android:layout_height="wrap_content"
316 android:paddingBottom="5dp"
317 android:text="@string/ssl_validator_label_validity"
318 android:textAppearance="?android:attr/textAppearanceMedium"
319 />
320
321 <TextView
322 android:id="@+id/label_validity_from"
323 android:layout_width="wrap_content"
324 android:layout_height="wrap_content"
325 android:text="@string/ssl_validator_label_validity_from"
326 android:textAppearance="?android:attr/textAppearanceSmall"
327 />
328
329 <TextView
330 android:id="@+id/value_validity_from"
331 android:layout_width="wrap_content"
332 android:layout_height="wrap_content"
333 android:paddingBottom="5dp"
334 android:text=""
335 android:textAppearance="?android:attr/textAppearanceSmall"
336 />
337
338 <TextView
339 android:id="@+id/label_validity_to"
340 android:layout_width="wrap_content"
341 android:layout_height="wrap_content"
342 android:text="@string/ssl_validator_label_validity_to"
343 android:textAppearance="?android:attr/textAppearanceSmall"
344 />
345
346 <TextView
347 android:id="@+id/value_validity_to"
348 android:layout_width="wrap_content"
349 android:layout_height="wrap_content"
350 android:paddingBottom="5dp"
351 android:text=""
352 android:textAppearance="?android:attr/textAppearanceSmall"
353 />
354
355 <TextView
356 android:id="@+id/label_signature"
357 android:layout_width="wrap_content"
358 android:layout_height="wrap_content"
359 android:paddingBottom="5dp"
360 android:text="@string/ssl_validator_label_signature"
361 android:textAppearance="?android:attr/textAppearanceMedium"
362 />
363
364 <TextView
365 android:id="@+id/label_signature_algorithm"
366 android:layout_width="wrap_content"
367 android:layout_height="wrap_content"
368 android:text="@string/ssl_validator_label_signature_algorithm"
369 android:textAppearance="?android:attr/textAppearanceSmall"
370 />
371
372 <TextView
373 android:id="@+id/value_signature_algorithm"
374 android:layout_width="wrap_content"
375 android:layout_height="wrap_content"
376 android:paddingBottom="5dp"
377 android:text=""
378 android:textAppearance="?android:attr/textAppearanceSmall"
379 />
380
381 <TextView
382 android:id="@+id/value_signature"
383 android:layout_width="wrap_content"
384 android:layout_height="wrap_content"
385 android:paddingBottom="5dp"
386 android:text=""
387 android:textAppearance="?android:attr/textAppearanceSmall"
388 />
389
390 </LinearLayout>
391
392 </ScrollView>
393
394 <TextView
395 android:id="@+id/question"
396 android:layout_width="wrap_content"
397 android:layout_height="wrap_content"
398 android:paddingTop="@dimen/standard_padding"
399 android:text="@string/ssl_validator_question"
400 android:textAppearance="?android:attr/textAppearanceMedium"
401 >
402 </TextView>
403
404 <LinearLayout
405 android:layout_width="match_parent"
406 android:layout_height="wrap_content"
407 android:gravity="center" >
408
409 <android.support.v7.widget.AppCompatButton
410 android:id="@+id/cancel"
411 style="@style/ownCloud.Button"
412 android:layout_width="0dp"
413 android:layout_height="wrap_content"
414 android:layout_weight="1"
415 android:text="@string/common_cancel" />
416
417 <android.support.v7.widget.AppCompatButton
418 android:id="@+id/details_btn"
419 style="@style/ownCloud.Button"
420 android:layout_width="0dp"
421 android:layout_height="wrap_content"
422 android:layout_weight="1"
423 android:text="@string/ssl_validator_btn_details_see" />
424
425 <android.support.v7.widget.AppCompatButton
426 android:id="@+id/ok"
427 style="@style/ownCloud.Button"
428 android:layout_width="0dp"
429 android:layout_height="wrap_content"
430 android:layout_weight="1"
431 android:text="@string/common_ok" />
432
433 </LinearLayout>
434
435 </LinearLayout>