|
@@ -0,0 +1,413 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<!--
|
|
|
+ ownCloud Android client application
|
|
|
+
|
|
|
+ Copyright (C) 2012-2013 ownCloud Inc.
|
|
|
+
|
|
|
+ This program is free software: you can redistribute it and/or modify
|
|
|
+ it under the terms of the GNU General Public License version 2,
|
|
|
+ as published by the Free Software Foundation.
|
|
|
+
|
|
|
+ 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"
|
|
|
+ android:orientation="vertical" >
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/untrusted_header"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/ssl_validator_header"
|
|
|
+ android:padding="5dp"
|
|
|
+ android:textAppearance="?android:attr/textAppearanceMedium"
|
|
|
+ />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/untrusted_reason_cert_not_trusted"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="left"
|
|
|
+ android:paddingLeft="20dp"
|
|
|
+ android:text="@string/ssl_validator_reason_cert_not_trusted"
|
|
|
+ android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
+ />
|
|
|
+
|
|
|
+ <ScrollView
|
|
|
+ android:id="@+id/untrusted_details_scroll"
|
|
|
+ android:visibility="gone"
|
|
|
+ android:padding="20dp"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="180dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/untrusted_details_view"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="left"
|
|
|
+ android:orientation="vertical" >
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/untrusted_null_cert"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="left"
|
|
|
+ android:paddingLeft="20dp"
|
|
|
+ android:text="@string/ssl_validator_null_cert"
|
|
|
+ android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_value_issuer_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_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/untrusted_value_signature"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:paddingBottom="5dp"
|
|
|
+ android:text=""
|
|
|
+ android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
+ />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </ScrollView>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/untrusted_question"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:padding="5dp"
|
|
|
+ android:text="@string/ssl_validator_question"
|
|
|
+ android:textAppearance="?android:attr/textAppearanceMedium"
|
|
|
+ >
|
|
|
+ </TextView>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center" >
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/untrusted_cancel"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/common_cancel" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/untrusted_details_btn"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/ssl_validator_btn_details_see" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/untrusted_ok"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/common_ok" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+</LinearLayout>
|