2012-09-05 15:46:30 +04:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
ownCloud Android client application
|
|
|
|
|
2015-03-05 15:27:45 +03:00
|
|
|
Copyright (C) 2015 ownCloud Inc.
|
2013-02-07 21:45:10 +04:00
|
|
|
|
2012-09-05 15:46:30 +04:00
|
|
|
This program is free software: you can redistribute it and/or modify
|
2013-04-17 14:26:13 +04:00
|
|
|
it under the terms of the GNU General Public License version 2,
|
|
|
|
as published by the Free Software Foundation.
|
|
|
|
|
2012-09-05 15:46:30 +04:00
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
-->
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:id="@+id/root"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
2015-08-13 16:41:59 +03:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="16dp">
|
2012-09-05 15:46:30 +04:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/header"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ssl_validator_header"
|
2015-08-13 16:41:59 +03:00
|
|
|
android:paddingBottom="16dp"
|
2012-09-05 15:46:30 +04:00
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
2015-08-13 16:41:59 +03:00
|
|
|
android:textColor="@color/black"
|
2012-09-05 15:46:30 +04:00
|
|
|
/>
|
2015-08-13 16:41:59 +03:00
|
|
|
|
2012-09-05 15:46:30 +04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/reason_cert_not_trusted"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="left"
|
2015-08-13 16:41:59 +03:00
|
|
|
android:paddingLeft="8dp"
|
2012-09-05 15:46:30 +04:00
|
|
|
android:text="@string/ssl_validator_reason_cert_not_trusted"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/reason_cert_expired"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="left"
|
2015-08-13 16:41:59 +03:00
|
|
|
android:paddingLeft="8dp"
|
2012-09-05 15:46:30 +04:00
|
|
|
android:text="@string/ssl_validator_reason_cert_expired"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/reason_cert_not_yet_valid"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="left"
|
2015-08-13 16:41:59 +03:00
|
|
|
android:paddingLeft="8dp"
|
2012-09-05 15:46:30 +04:00
|
|
|
android:text="@string/ssl_validator_reason_cert_not_yet_valid"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
2012-09-07 16:11:08 +04:00
|
|
|
android:id="@+id/reason_hostname_not_verified"
|
2012-09-05 15:46:30 +04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="left"
|
2015-08-13 16:41:59 +03:00
|
|
|
android:paddingLeft="8dp"
|
2012-09-07 16:11:08 +04:00
|
|
|
android:text="@string/ssl_validator_reason_hostname_not_verified"
|
2012-09-05 15:46:30 +04:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
2012-10-29 17:19:56 +04:00
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
android:id="@+id/details_scroll"
|
|
|
|
android:visibility="gone"
|
2015-08-13 16:41:59 +03:00
|
|
|
android:padding="8dp"
|
2012-09-05 15:46:30 +04:00
|
|
|
android:layout_width="wrap_content"
|
2012-10-29 17:19:56 +04:00
|
|
|
android:layout_height="180dp">
|
|
|
|
|
2014-03-07 17:48:42 +04:00
|
|
|
<LinearLayout
|
2012-10-29 17:19:56 +04:00
|
|
|
android:id="@+id/details_view"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="left"
|
|
|
|
android:orientation="vertical" >
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/label_subject"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:text="@string/ssl_validator_label_subject"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/label_subject_CN"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ssl_validator_label_CN"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/value_subject_CN"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/label_subject_O"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ssl_validator_label_O"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/value_subject_O"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/label_subject_OU"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ssl_validator_label_OU"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/value_subject_OU"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/label_subject_ST"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ssl_validator_label_ST"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/value_subject_ST"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/label_subject_C"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ssl_validator_label_C"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/value_subject_C"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/label_subject_L"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ssl_validator_label_L"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/value_subject_L"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/label_issuer"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:text="@string/ssl_validator_label_issuer"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/label_issuer_CN"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ssl_validator_label_CN"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/value_issuer_CN"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/label_issuer_O"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ssl_validator_label_O"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/value_issuer_O"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/label_issuer_OU"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ssl_validator_label_OU"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/value_issuer_OU"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/label_issuer_ST"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ssl_validator_label_ST"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/value_issuer_ST"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
2012-09-05 15:46:30 +04:00
|
|
|
|
2012-10-29 17:19:56 +04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/label_issuer_C"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ssl_validator_label_C"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/value_issuer_C"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/label_issuer_L"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ssl_validator_label_L"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/value_issuer_L"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/label_validity"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:text="@string/ssl_validator_label_validity"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/label_validity_from"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ssl_validator_label_validity_from"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/value_validity_from"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/label_validity_to"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ssl_validator_label_validity_to"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/value_validity_to"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/label_signature"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:text="@string/ssl_validator_label_signature"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/label_signature_algorithm"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/ssl_validator_label_signature_algorithm"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/value_signature_algorithm"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/value_signature"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:text=""
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</ScrollView>
|
|
|
|
|
2012-09-05 15:46:30 +04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/question"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-08-13 16:41:59 +03:00
|
|
|
android:paddingTop="16dp"
|
2012-09-05 15:46:30 +04:00
|
|
|
android:text="@string/ssl_validator_question"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
|
|
>
|
|
|
|
</TextView>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2012-10-29 18:16:46 +04:00
|
|
|
android:gravity="center" >
|
2012-09-05 15:46:30 +04:00
|
|
|
|
2015-08-07 18:09:47 +03:00
|
|
|
<android.support.v7.widget.AppCompatButton
|
2012-09-05 15:46:30 +04:00
|
|
|
android:id="@+id/cancel"
|
2015-08-13 16:41:59 +03:00
|
|
|
style="@style/Button.Borderless"
|
2012-09-05 15:46:30 +04:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
2015-08-13 16:41:59 +03:00
|
|
|
android:text="@string/common_no" />
|
2012-09-05 15:46:30 +04:00
|
|
|
|
2015-08-07 18:09:47 +03:00
|
|
|
<android.support.v7.widget.AppCompatButton
|
2012-10-29 17:19:56 +04:00
|
|
|
android:id="@+id/details_btn"
|
2015-08-13 16:41:59 +03:00
|
|
|
style="@style/Button.Borderless"
|
2012-10-29 17:19:56 +04:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2015-08-13 16:41:59 +03:00
|
|
|
android:layout_weight="2"
|
2012-10-29 17:19:56 +04:00
|
|
|
android:text="@string/ssl_validator_btn_details_see" />
|
|
|
|
|
2015-08-07 18:09:47 +03:00
|
|
|
<android.support.v7.widget.AppCompatButton
|
2012-09-05 15:46:30 +04:00
|
|
|
android:id="@+id/ok"
|
2015-08-13 16:41:59 +03:00
|
|
|
style="@style/Button.Borderless"
|
2012-09-05 15:46:30 +04:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
2015-08-13 16:41:59 +03:00
|
|
|
android:text="@string/common_yes" />
|
2012-09-05 15:46:30 +04:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|