ssl_validator_layout.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. ownCloud Android client application
  4. Copyright (C) 2015 ownCloud Inc.
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License version 2,
  7. as published by the Free Software Foundation.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. -->
  15. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  16. android:id="@+id/root"
  17. android:layout_width="wrap_content"
  18. android:layout_height="wrap_content"
  19. android:gravity="center"
  20. android:orientation="vertical"
  21. android:padding="@dimen/standard_padding">
  22. <TextView
  23. android:id="@+id/header"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:text="@string/ssl_validator_header"
  27. android:paddingBottom="@dimen/standard_padding"
  28. android:textAppearance="?android:attr/textAppearanceMedium"
  29. android:textColor="@color/black"
  30. />
  31. <TextView
  32. android:id="@+id/reason_cert_not_trusted"
  33. android:layout_width="wrap_content"
  34. android:layout_height="wrap_content"
  35. android:layout_gravity="left"
  36. android:paddingLeft="8dp"
  37. android:text="@string/ssl_validator_reason_cert_not_trusted"
  38. android:textAppearance="?android:attr/textAppearanceSmall"
  39. />
  40. <TextView
  41. android:id="@+id/reason_cert_expired"
  42. android:layout_width="wrap_content"
  43. android:layout_height="wrap_content"
  44. android:layout_gravity="left"
  45. android:paddingLeft="8dp"
  46. android:text="@string/ssl_validator_reason_cert_expired"
  47. android:textAppearance="?android:attr/textAppearanceSmall"
  48. />
  49. <TextView
  50. android:id="@+id/reason_cert_not_yet_valid"
  51. android:layout_width="wrap_content"
  52. android:layout_height="wrap_content"
  53. android:layout_gravity="left"
  54. android:paddingLeft="8dp"
  55. android:text="@string/ssl_validator_reason_cert_not_yet_valid"
  56. android:textAppearance="?android:attr/textAppearanceSmall"
  57. />
  58. <TextView
  59. android:id="@+id/reason_hostname_not_verified"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:layout_gravity="left"
  63. android:paddingLeft="8dp"
  64. android:text="@string/ssl_validator_reason_hostname_not_verified"
  65. android:textAppearance="?android:attr/textAppearanceSmall"
  66. />
  67. <ScrollView
  68. android:id="@+id/details_scroll"
  69. android:visibility="gone"
  70. android:padding="8dp"
  71. android:layout_width="wrap_content"
  72. android:layout_height="180dp">
  73. <LinearLayout
  74. android:id="@+id/details_view"
  75. android:layout_width="wrap_content"
  76. android:layout_height="wrap_content"
  77. android:gravity="left"
  78. android:orientation="vertical" >
  79. <TextView
  80. android:id="@+id/label_subject"
  81. android:layout_width="wrap_content"
  82. android:layout_height="wrap_content"
  83. android:paddingBottom="5dp"
  84. android:text="@string/ssl_validator_label_subject"
  85. android:textAppearance="?android:attr/textAppearanceMedium"
  86. />
  87. <TextView
  88. android:id="@+id/label_subject_CN"
  89. android:layout_width="wrap_content"
  90. android:layout_height="wrap_content"
  91. android:text="@string/ssl_validator_label_CN"
  92. android:textAppearance="?android:attr/textAppearanceSmall"
  93. />
  94. <TextView
  95. android:id="@+id/value_subject_CN"
  96. android:layout_width="wrap_content"
  97. android:layout_height="wrap_content"
  98. android:paddingBottom="5dp"
  99. android:text=""
  100. android:textAppearance="?android:attr/textAppearanceSmall"
  101. />
  102. <TextView
  103. android:id="@+id/label_subject_O"
  104. android:layout_width="wrap_content"
  105. android:layout_height="wrap_content"
  106. android:text="@string/ssl_validator_label_O"
  107. android:textAppearance="?android:attr/textAppearanceSmall"
  108. />
  109. <TextView
  110. android:id="@+id/value_subject_O"
  111. android:layout_width="wrap_content"
  112. android:layout_height="wrap_content"
  113. android:paddingBottom="5dp"
  114. android:text=""
  115. android:textAppearance="?android:attr/textAppearanceSmall"
  116. />
  117. <TextView
  118. android:id="@+id/label_subject_OU"
  119. android:layout_width="wrap_content"
  120. android:layout_height="wrap_content"
  121. android:text="@string/ssl_validator_label_OU"
  122. android:textAppearance="?android:attr/textAppearanceSmall"
  123. />
  124. <TextView
  125. android:id="@+id/value_subject_OU"
  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. <TextView
  133. android:id="@+id/label_subject_ST"
  134. android:layout_width="wrap_content"
  135. android:layout_height="wrap_content"
  136. android:text="@string/ssl_validator_label_ST"
  137. android:textAppearance="?android:attr/textAppearanceSmall"
  138. />
  139. <TextView
  140. android:id="@+id/value_subject_ST"
  141. android:layout_width="wrap_content"
  142. android:layout_height="wrap_content"
  143. android:paddingBottom="5dp"
  144. android:text=""
  145. android:textAppearance="?android:attr/textAppearanceSmall"
  146. />
  147. <TextView
  148. android:id="@+id/label_subject_C"
  149. android:layout_width="wrap_content"
  150. android:layout_height="wrap_content"
  151. android:text="@string/ssl_validator_label_C"
  152. android:textAppearance="?android:attr/textAppearanceSmall"
  153. />
  154. <TextView
  155. android:id="@+id/value_subject_C"
  156. android:layout_width="wrap_content"
  157. android:layout_height="wrap_content"
  158. android:paddingBottom="5dp"
  159. android:text=""
  160. android:textAppearance="?android:attr/textAppearanceSmall"
  161. />
  162. <TextView
  163. android:id="@+id/label_subject_L"
  164. android:layout_width="wrap_content"
  165. android:layout_height="wrap_content"
  166. android:text="@string/ssl_validator_label_L"
  167. android:textAppearance="?android:attr/textAppearanceSmall"
  168. />
  169. <TextView
  170. android:id="@+id/value_subject_L"
  171. android:layout_width="wrap_content"
  172. android:layout_height="wrap_content"
  173. android:paddingBottom="5dp"
  174. android:text=""
  175. android:textAppearance="?android:attr/textAppearanceSmall"
  176. />
  177. <TextView
  178. android:id="@+id/label_issuer"
  179. android:layout_width="wrap_content"
  180. android:layout_height="wrap_content"
  181. android:paddingBottom="5dp"
  182. android:text="@string/ssl_validator_label_issuer"
  183. android:textAppearance="?android:attr/textAppearanceMedium"
  184. />
  185. <TextView
  186. android:id="@+id/label_issuer_CN"
  187. android:layout_width="wrap_content"
  188. android:layout_height="wrap_content"
  189. android:text="@string/ssl_validator_label_CN"
  190. android:textAppearance="?android:attr/textAppearanceSmall"
  191. />
  192. <TextView
  193. android:id="@+id/value_issuer_CN"
  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. <TextView
  201. android:id="@+id/label_issuer_O"
  202. android:layout_width="wrap_content"
  203. android:layout_height="wrap_content"
  204. android:text="@string/ssl_validator_label_O"
  205. android:textAppearance="?android:attr/textAppearanceSmall"
  206. />
  207. <TextView
  208. android:id="@+id/value_issuer_O"
  209. android:layout_width="wrap_content"
  210. android:layout_height="wrap_content"
  211. android:paddingBottom="5dp"
  212. android:text=""
  213. android:textAppearance="?android:attr/textAppearanceSmall"
  214. />
  215. <TextView
  216. android:id="@+id/label_issuer_OU"
  217. android:layout_width="wrap_content"
  218. android:layout_height="wrap_content"
  219. android:text="@string/ssl_validator_label_OU"
  220. android:textAppearance="?android:attr/textAppearanceSmall"
  221. />
  222. <TextView
  223. android:id="@+id/value_issuer_OU"
  224. android:layout_width="wrap_content"
  225. android:layout_height="wrap_content"
  226. android:paddingBottom="5dp"
  227. android:text=""
  228. android:textAppearance="?android:attr/textAppearanceSmall"
  229. />
  230. <TextView
  231. android:id="@+id/label_issuer_ST"
  232. android:layout_width="wrap_content"
  233. android:layout_height="wrap_content"
  234. android:text="@string/ssl_validator_label_ST"
  235. android:textAppearance="?android:attr/textAppearanceSmall"
  236. />
  237. <TextView
  238. android:id="@+id/value_issuer_ST"
  239. android:layout_width="wrap_content"
  240. android:layout_height="wrap_content"
  241. android:paddingBottom="5dp"
  242. android:text=""
  243. android:textAppearance="?android:attr/textAppearanceSmall"
  244. />
  245. <TextView
  246. android:id="@+id/label_issuer_C"
  247. android:layout_width="wrap_content"
  248. android:layout_height="wrap_content"
  249. android:text="@string/ssl_validator_label_C"
  250. android:textAppearance="?android:attr/textAppearanceSmall"
  251. />
  252. <TextView
  253. android:id="@+id/value_issuer_C"
  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. <TextView
  261. android:id="@+id/label_issuer_L"
  262. android:layout_width="wrap_content"
  263. android:layout_height="wrap_content"
  264. android:text="@string/ssl_validator_label_L"
  265. android:textAppearance="?android:attr/textAppearanceSmall"
  266. />
  267. <TextView
  268. android:id="@+id/value_issuer_L"
  269. android:layout_width="wrap_content"
  270. android:layout_height="wrap_content"
  271. android:paddingBottom="5dp"
  272. android:text=""
  273. android:textAppearance="?android:attr/textAppearanceSmall"
  274. />
  275. <TextView
  276. android:id="@+id/label_validity"
  277. android:layout_width="wrap_content"
  278. android:layout_height="wrap_content"
  279. android:paddingBottom="5dp"
  280. android:text="@string/ssl_validator_label_validity"
  281. android:textAppearance="?android:attr/textAppearanceMedium"
  282. />
  283. <TextView
  284. android:id="@+id/label_validity_from"
  285. android:layout_width="wrap_content"
  286. android:layout_height="wrap_content"
  287. android:text="@string/ssl_validator_label_validity_from"
  288. android:textAppearance="?android:attr/textAppearanceSmall"
  289. />
  290. <TextView
  291. android:id="@+id/value_validity_from"
  292. android:layout_width="wrap_content"
  293. android:layout_height="wrap_content"
  294. android:paddingBottom="5dp"
  295. android:text=""
  296. android:textAppearance="?android:attr/textAppearanceSmall"
  297. />
  298. <TextView
  299. android:id="@+id/label_validity_to"
  300. android:layout_width="wrap_content"
  301. android:layout_height="wrap_content"
  302. android:text="@string/ssl_validator_label_validity_to"
  303. android:textAppearance="?android:attr/textAppearanceSmall"
  304. />
  305. <TextView
  306. android:id="@+id/value_validity_to"
  307. android:layout_width="wrap_content"
  308. android:layout_height="wrap_content"
  309. android:paddingBottom="5dp"
  310. android:text=""
  311. android:textAppearance="?android:attr/textAppearanceSmall"
  312. />
  313. <TextView
  314. android:id="@+id/label_signature"
  315. android:layout_width="wrap_content"
  316. android:layout_height="wrap_content"
  317. android:paddingBottom="5dp"
  318. android:text="@string/ssl_validator_label_signature"
  319. android:textAppearance="?android:attr/textAppearanceMedium"
  320. />
  321. <TextView
  322. android:id="@+id/label_signature_algorithm"
  323. android:layout_width="wrap_content"
  324. android:layout_height="wrap_content"
  325. android:text="@string/ssl_validator_label_signature_algorithm"
  326. android:textAppearance="?android:attr/textAppearanceSmall"
  327. />
  328. <TextView
  329. android:id="@+id/value_signature_algorithm"
  330. android:layout_width="wrap_content"
  331. android:layout_height="wrap_content"
  332. android:paddingBottom="5dp"
  333. android:text=""
  334. android:textAppearance="?android:attr/textAppearanceSmall"
  335. />
  336. <TextView
  337. android:id="@+id/value_signature"
  338. android:layout_width="wrap_content"
  339. android:layout_height="wrap_content"
  340. android:paddingBottom="5dp"
  341. android:text=""
  342. android:textAppearance="?android:attr/textAppearanceSmall"
  343. />
  344. </LinearLayout>
  345. </ScrollView>
  346. <TextView
  347. android:id="@+id/question"
  348. android:layout_width="wrap_content"
  349. android:layout_height="wrap_content"
  350. android:paddingTop="@dimen/standard_padding"
  351. android:text="@string/ssl_validator_question"
  352. android:textAppearance="?android:attr/textAppearanceMedium"
  353. >
  354. </TextView>
  355. <LinearLayout
  356. android:layout_width="match_parent"
  357. android:layout_height="wrap_content"
  358. android:gravity="center" >
  359. <android.support.v7.widget.AppCompatButton
  360. android:id="@+id/cancel"
  361. style="@style/Button.Borderless"
  362. android:layout_width="0dp"
  363. android:layout_height="wrap_content"
  364. android:layout_weight="1"
  365. android:text="@string/common_no" />
  366. <android.support.v7.widget.AppCompatButton
  367. android:id="@+id/details_btn"
  368. style="@style/Button.Borderless"
  369. android:layout_width="0dp"
  370. android:layout_height="wrap_content"
  371. android:layout_weight="2"
  372. android:text="@string/ssl_validator_btn_details_see" />
  373. <android.support.v7.widget.AppCompatButton
  374. android:id="@+id/ok"
  375. style="@style/Button.Borderless"
  376. android:layout_width="0dp"
  377. android:layout_height="wrap_content"
  378. android:layout_weight="1"
  379. android:text="@string/common_yes" />
  380. </LinearLayout>
  381. </LinearLayout>