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" > 
  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/reason_no_info_about_error" 
  80                 android:
layout_width=
"wrap_content" 
  81                 android:
layout_height=
"wrap_content" 
  82                 android:
layout_gravity=
"left" 
  83                 android:
paddingLeft=
"20dp" 
  84                 android:
text=
"@string/ssl_validator_no_info_about_error" 
  85                 android:
textAppearance=
"?android:attr/textAppearanceSmall" 
  89         android:
id=
"@+id/details_scroll" 
  90         android:
visibility=
"gone"  
  91         android:
padding=
"20dp" 
  92         android:
layout_width=
"match_parent" 
  93         android:
layout_height=
"0dp" 
  94         android:
layout_weight=
"1" 
  98                 android:
id=
"@+id/details_view" 
  99                 android:
layout_width=
"wrap_content" 
 100                 android:
layout_height=
"wrap_content" 
 101                 android:
gravity=
"left" 
 102                 android:
orientation=
"vertical" > 
 105                         android:
id=
"@+id/null_cert" 
 106                         android:
layout_width=
"wrap_content" 
 107                         android:
layout_height=
"wrap_content" 
 108                         android:
layout_gravity=
"left" 
 109                         android:
paddingLeft=
"20dp" 
 110                         android:
text=
"@string/ssl_validator_null_cert" 
 111                         android:
textAppearance=
"?android:attr/textAppearanceSmall" /> 
 114                                 android:
id=
"@+id/label_subject" 
 115                                 android:
layout_width=
"wrap_content" 
 116                                 android:
layout_height=
"wrap_content" 
 117                                         android:
paddingBottom=
"5dp" 
 118                                 android:
text=
"@string/ssl_validator_label_subject" 
 119                                 android:
textAppearance=
"?android:attr/textAppearanceMedium" 
 123                                     android:
id=
"@+id/label_subject_CN" 
 124                                     android:
layout_width=
"wrap_content" 
 125                                     android:
layout_height=
"wrap_content" 
 126                                     android:
text=
"@string/ssl_validator_label_CN" 
 127                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 131                                     android:
id=
"@+id/value_subject_CN" 
 132                                     android:
layout_width=
"wrap_content" 
 133                                     android:
layout_height=
"wrap_content" 
 134                                     android:
paddingBottom=
"5dp" 
 136                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 140                                     android:
id=
"@+id/label_subject_O" 
 141                                     android:
layout_width=
"wrap_content" 
 142                                     android:
layout_height=
"wrap_content" 
 143                                     android:
text=
"@string/ssl_validator_label_O" 
 144                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 148                                     android:
id=
"@+id/value_subject_O" 
 149                                     android:
layout_width=
"wrap_content" 
 150                                     android:
layout_height=
"wrap_content" 
 151                                     android:
paddingBottom=
"5dp" 
 153                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 157                                     android:
id=
"@+id/label_subject_OU" 
 158                                     android:
layout_width=
"wrap_content" 
 159                                     android:
layout_height=
"wrap_content" 
 160                                     android:
text=
"@string/ssl_validator_label_OU" 
 161                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 165                                     android:
id=
"@+id/value_subject_OU" 
 166                                     android:
layout_width=
"wrap_content" 
 167                                     android:
layout_height=
"wrap_content" 
 168                                     android:
paddingBottom=
"5dp" 
 170                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 174                                     android:
id=
"@+id/label_subject_ST" 
 175                                     android:
layout_width=
"wrap_content" 
 176                                     android:
layout_height=
"wrap_content" 
 177                                     android:
text=
"@string/ssl_validator_label_ST" 
 178                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 182                                     android:
id=
"@+id/value_subject_ST" 
 183                                     android:
layout_width=
"wrap_content" 
 184                                     android:
layout_height=
"wrap_content" 
 185                                     android:
paddingBottom=
"5dp" 
 187                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 191                                     android:
id=
"@+id/label_subject_C" 
 192                                     android:
layout_width=
"wrap_content" 
 193                                     android:
layout_height=
"wrap_content" 
 194                                     android:
text=
"@string/ssl_validator_label_C" 
 195                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 199                                     android:
id=
"@+id/value_subject_C" 
 200                                     android:
layout_width=
"wrap_content" 
 201                                     android:
layout_height=
"wrap_content" 
 202                                     android:
paddingBottom=
"5dp" 
 204                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 208                                     android:
id=
"@+id/label_subject_L" 
 209                                     android:
layout_width=
"wrap_content" 
 210                                     android:
layout_height=
"wrap_content" 
 211                                     android:
text=
"@string/ssl_validator_label_L" 
 212                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 216                                     android:
id=
"@+id/value_subject_L" 
 217                                     android:
layout_width=
"wrap_content" 
 218                                     android:
layout_height=
"wrap_content" 
 219                                     android:
paddingBottom=
"5dp" 
 221                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 226                                 android:
id=
"@+id/label_issuer" 
 227                                 android:
layout_width=
"wrap_content" 
 228                                 android:
layout_height=
"wrap_content" 
 229                                         android:
paddingBottom=
"5dp" 
 230                                 android:
text=
"@string/ssl_validator_label_issuer" 
 231                                 android:
textAppearance=
"?android:attr/textAppearanceMedium" 
 235                                     android:
id=
"@+id/label_issuer_CN" 
 236                                     android:
layout_width=
"wrap_content" 
 237                                     android:
layout_height=
"wrap_content" 
 238                                     android:
text=
"@string/ssl_validator_label_CN" 
 239                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 243                                     android:
id=
"@+id/value_issuer_CN" 
 244                                     android:
layout_width=
"wrap_content" 
 245                                     android:
layout_height=
"wrap_content" 
 246                                     android:
paddingBottom=
"5dp" 
 248                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 252                                     android:
id=
"@+id/label_issuer_O" 
 253                                     android:
layout_width=
"wrap_content" 
 254                                     android:
layout_height=
"wrap_content" 
 255                                     android:
text=
"@string/ssl_validator_label_O" 
 256                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 260                                     android:
id=
"@+id/value_issuer_O" 
 261                                     android:
layout_width=
"wrap_content" 
 262                                     android:
layout_height=
"wrap_content" 
 263                                     android:
paddingBottom=
"5dp" 
 265                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 269                                     android:
id=
"@+id/label_issuer_OU" 
 270                                     android:
layout_width=
"wrap_content" 
 271                                     android:
layout_height=
"wrap_content" 
 272                                     android:
text=
"@string/ssl_validator_label_OU" 
 273                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 277                                     android:
id=
"@+id/value_issuer_OU" 
 278                                     android:
layout_width=
"wrap_content" 
 279                                     android:
layout_height=
"wrap_content" 
 280                                     android:
paddingBottom=
"5dp" 
 282                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 286                                     android:
id=
"@+id/label_issuer_ST" 
 287                                     android:
layout_width=
"wrap_content" 
 288                                     android:
layout_height=
"wrap_content" 
 289                                     android:
text=
"@string/ssl_validator_label_ST" 
 290                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 294                                     android:
id=
"@+id/value_issuer_ST" 
 295                                     android:
layout_width=
"wrap_content" 
 296                                     android:
layout_height=
"wrap_content" 
 297                                     android:
paddingBottom=
"5dp" 
 299                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 303                                     android:
id=
"@+id/label_issuer_C" 
 304                                     android:
layout_width=
"wrap_content" 
 305                                     android:
layout_height=
"wrap_content" 
 306                                     android:
text=
"@string/ssl_validator_label_C" 
 307                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 311                                     android:
id=
"@+id/value_issuer_C" 
 312                                     android:
layout_width=
"wrap_content" 
 313                                     android:
layout_height=
"wrap_content" 
 314                                     android:
paddingBottom=
"5dp" 
 316                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 320                                     android:
id=
"@+id/label_issuer_L" 
 321                                     android:
layout_width=
"wrap_content" 
 322                                     android:
layout_height=
"wrap_content" 
 323                                     android:
text=
"@string/ssl_validator_label_L" 
 324                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 328                                     android:
id=
"@+id/value_issuer_L" 
 329                                     android:
layout_width=
"wrap_content" 
 330                                     android:
layout_height=
"wrap_content" 
 331                                     android:
paddingBottom=
"5dp" 
 333                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 337                                 android:
id=
"@+id/label_validity" 
 338                                 android:
layout_width=
"wrap_content" 
 339                                 android:
layout_height=
"wrap_content" 
 340                                         android:
paddingBottom=
"5dp" 
 341                                 android:
text=
"@string/ssl_validator_label_validity" 
 342                                 android:
textAppearance=
"?android:attr/textAppearanceMedium" 
 346                                     android:
id=
"@+id/label_validity_from" 
 347                                     android:
layout_width=
"wrap_content" 
 348                                     android:
layout_height=
"wrap_content" 
 349                                     android:
text=
"@string/ssl_validator_label_validity_from" 
 350                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 354                                     android:
id=
"@+id/value_validity_from" 
 355                                     android:
layout_width=
"wrap_content" 
 356                                     android:
layout_height=
"wrap_content" 
 357                                     android:
paddingBottom=
"5dp" 
 359                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 363                                     android:
id=
"@+id/label_validity_to" 
 364                                     android:
layout_width=
"wrap_content" 
 365                                     android:
layout_height=
"wrap_content" 
 366                                     android:
text=
"@string/ssl_validator_label_validity_to" 
 367                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 371                                     android:
id=
"@+id/value_validity_to" 
 372                                     android:
layout_width=
"wrap_content" 
 373                                     android:
layout_height=
"wrap_content" 
 374                                     android:
paddingBottom=
"5dp" 
 376                                     android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 381                                 android:
id=
"@+id/label_signature" 
 382                                 android:
layout_width=
"wrap_content" 
 383                                 android:
layout_height=
"wrap_content" 
 384                                         android:
paddingBottom=
"5dp" 
 385                                 android:
text=
"@string/ssl_validator_label_signature" 
 386                                 android:
textAppearance=
"?android:attr/textAppearanceMedium" 
 390                                 android:
id=
"@+id/label_signature_algorithm" 
 391                                 android:
layout_width=
"wrap_content" 
 392                                 android:
layout_height=
"wrap_content" 
 393                                 android:
text=
"@string/ssl_validator_label_signature_algorithm" 
 394                                 android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 398                                 android:
id=
"@+id/value_signature_algorithm" 
 399                                 android:
layout_width=
"wrap_content" 
 400                                 android:
layout_height=
"wrap_content" 
 401                                         android:
paddingBottom=
"5dp" 
 403                                 android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 408                                 android:
id=
"@+id/value_signature" 
 409                                 android:
layout_width=
"wrap_content" 
 410                                 android:
layout_height=
"wrap_content" 
 411                                         android:
paddingBottom=
"5dp" 
 413                                 android:
textAppearance=
"?android:attr/textAppearanceSmall" 
 421         android:
id=
"@+id/question" 
 422         android:
layout_width=
"wrap_content" 
 423         android:
layout_height=
"wrap_content" 
 424                 android:
layout_weight=
"0" 
 425                 android:
padding=
"5dp" 
 426         android:
text=
"@string/ssl_validator_question" 
 427         android:
textAppearance=
"?android:attr/textAppearanceMedium" 
 432         android:
layout_width=
"match_parent" 
 433         android:
layout_height=
"wrap_content" 
 434                 android:
layout_weight=
"0" 
 435         android:
gravity=
"center" > 
 438             android:
id=
"@+id/cancel" 
 439             android:
layout_width=
"0dp" 
 440             android:
layout_height=
"wrap_content" 
 441             android:
layout_weight=
"1" 
 442             android:
text=
"@string/common_cancel" /> 
 445             android:
id=
"@+id/details_btn" 
 446             android:
layout_width=
"0dp" 
 447             android:
layout_height=
"wrap_content" 
 448             android:
layout_weight=
"1" 
 449             android:
text=
"@string/ssl_validator_btn_details_see" /> 
 453             android:
layout_width=
"0dp" 
 454             android:
layout_height=
"wrap_content" 
 455             android:
layout_weight=
"1" 
 456             android:
text=
"@string/common_ok" />