diff --git a/.classpath b/.classpath
deleted file mode 100644
index fad7815..0000000
--- a/.classpath
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
deleted file mode 100644
index 52f851c..0000000
--- a/.idea/encodings.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
deleted file mode 100644
index 6560a98..0000000
--- a/.idea/inspectionProfiles/Project_Default.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
deleted file mode 100644
index e208459..0000000
--- a/.idea/misc.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
deleted file mode 100644
index 0fb9717..0000000
--- a/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml
deleted file mode 100644
index e96534f..0000000
--- a/.idea/uiDesigner.xml
+++ /dev/null
@@ -1,124 +0,0 @@
-
-
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
-
-
-
- -
-
-
-
-
-
- -
-
-
-
-
-
- -
-
-
-
-
-
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
-
-
- -
-
-
- -
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
deleted file mode 100644
index b549e95..0000000
--- a/.idea/workspace.xml
+++ /dev/null
@@ -1,283 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Android
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1529389282065
-
-
- 1529389282065
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1.8
-
-
-
-
-
-
-
-
-
-
-
- 1.8
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.project b/.project
deleted file mode 100644
index 4926216..0000000
--- a/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- demo
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
-
- org.eclipse.jdt.core.javanature
-
-
diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 6ffeb24..0000000
--- a/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-eclipse.preferences.version=1
-encoding//src/com/webank/one/GetSIGNTicketTest.java=UTF-8
-encoding//src/com/webank/pass/PassEasyCompare.java=UTF-8
-encoding//src/com/webank/pass/PassEasyface.java=UTF-8
-encoding//src/com/webank/utils/ValidateSignUtils.java=UTF-8
-encoding//src/com/webank/utils/ValidateSignUtils2.java=UTF-8
-encoding/=UTF-8
diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 3a21537..0000000
--- a/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,11 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.8
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.8
diff --git a/bin/com/webank/h5face/GetH5FaceId.class b/bin/com/webank/h5face/GetH5FaceId.class
deleted file mode 100644
index ced3bfd..0000000
Binary files a/bin/com/webank/h5face/GetH5FaceId.class and /dev/null differ
diff --git a/bin/com/webank/h5face/Live02.class b/bin/com/webank/h5face/Live02.class
deleted file mode 100644
index 5201a99..0000000
Binary files a/bin/com/webank/h5face/Live02.class and /dev/null differ
diff --git a/bin/com/webank/h5face/WebLogin2.class b/bin/com/webank/h5face/WebLogin2.class
deleted file mode 100644
index d24269d..0000000
Binary files a/bin/com/webank/h5face/WebLogin2.class and /dev/null differ
diff --git a/bin/com/webank/h5ocr/H5OcrLogin02.class b/bin/com/webank/h5ocr/H5OcrLogin02.class
deleted file mode 100644
index 34781bd..0000000
Binary files a/bin/com/webank/h5ocr/H5OcrLogin02.class and /dev/null differ
diff --git a/bin/com/webank/h5result/GetLiveResult.class b/bin/com/webank/h5result/GetLiveResult.class
deleted file mode 100644
index 97d13da..0000000
Binary files a/bin/com/webank/h5result/GetLiveResult.class and /dev/null differ
diff --git a/bin/com/webank/h5result/H5FaceResults.class b/bin/com/webank/h5result/H5FaceResults.class
deleted file mode 100644
index e55142c..0000000
Binary files a/bin/com/webank/h5result/H5FaceResults.class and /dev/null differ
diff --git a/bin/com/webank/h5result/OcrResults.class b/bin/com/webank/h5result/OcrResults.class
deleted file mode 100644
index 6068fcf..0000000
Binary files a/bin/com/webank/h5result/OcrResults.class and /dev/null differ
diff --git a/bin/com/webank/one/GetNONCETicket.class b/bin/com/webank/one/GetNONCETicket.class
deleted file mode 100644
index 1c51473..0000000
Binary files a/bin/com/webank/one/GetNONCETicket.class and /dev/null differ
diff --git a/bin/com/webank/one/GetSIGNTicketTest.class b/bin/com/webank/one/GetSIGNTicketTest.class
deleted file mode 100644
index 24035a8..0000000
Binary files a/bin/com/webank/one/GetSIGNTicketTest.class and /dev/null differ
diff --git a/bin/com/webank/one/access_token.class b/bin/com/webank/one/access_token.class
deleted file mode 100644
index 2566d38..0000000
Binary files a/bin/com/webank/one/access_token.class and /dev/null differ
diff --git a/bin/com/webank/pass/BankCardOcrApp.class b/bin/com/webank/pass/BankCardOcrApp.class
deleted file mode 100644
index 5f1cc78..0000000
Binary files a/bin/com/webank/pass/BankCardOcrApp.class and /dev/null differ
diff --git a/bin/com/webank/pass/PaasIdcardOcrApp.class b/bin/com/webank/pass/PaasIdcardOcrApp.class
deleted file mode 100644
index 4ad10cb..0000000
Binary files a/bin/com/webank/pass/PaasIdcardOcrApp.class and /dev/null differ
diff --git a/bin/com/webank/pass/PassEasyCompare.class b/bin/com/webank/pass/PassEasyCompare.class
deleted file mode 100644
index 9d3ca9c..0000000
Binary files a/bin/com/webank/pass/PassEasyCompare.class and /dev/null differ
diff --git a/bin/com/webank/pass/PassEasyface.class b/bin/com/webank/pass/PassEasyface.class
deleted file mode 100644
index b0a60cd..0000000
Binary files a/bin/com/webank/pass/PassEasyface.class and /dev/null differ
diff --git a/bin/com/webank/utils/Base64Util.class b/bin/com/webank/utils/Base64Util.class
deleted file mode 100644
index 9de73de..0000000
Binary files a/bin/com/webank/utils/Base64Util.class and /dev/null differ
diff --git a/bin/com/webank/utils/HttpClientUtil$1.class b/bin/com/webank/utils/HttpClientUtil$1.class
deleted file mode 100644
index d1691ef..0000000
Binary files a/bin/com/webank/utils/HttpClientUtil$1.class and /dev/null differ
diff --git a/bin/com/webank/utils/HttpClientUtil$2.class b/bin/com/webank/utils/HttpClientUtil$2.class
deleted file mode 100644
index fd7ce99..0000000
Binary files a/bin/com/webank/utils/HttpClientUtil$2.class and /dev/null differ
diff --git a/bin/com/webank/utils/HttpClientUtil.class b/bin/com/webank/utils/HttpClientUtil.class
deleted file mode 100644
index fde4d70..0000000
Binary files a/bin/com/webank/utils/HttpClientUtil.class and /dev/null differ
diff --git a/bin/com/webank/utils/ImageUtils.class b/bin/com/webank/utils/ImageUtils.class
deleted file mode 100644
index 49d3cc0..0000000
Binary files a/bin/com/webank/utils/ImageUtils.class and /dev/null differ
diff --git a/bin/com/webank/utils/Img2Base64Util.class b/bin/com/webank/utils/Img2Base64Util.class
deleted file mode 100644
index 47d9d76..0000000
Binary files a/bin/com/webank/utils/Img2Base64Util.class and /dev/null differ
diff --git a/bin/com/webank/utils/InvertCodeGeneratorUitls.class b/bin/com/webank/utils/InvertCodeGeneratorUitls.class
deleted file mode 100644
index e160e1f..0000000
Binary files a/bin/com/webank/utils/InvertCodeGeneratorUitls.class and /dev/null differ
diff --git a/bin/com/webank/utils/JsonUtil.class b/bin/com/webank/utils/JsonUtil.class
deleted file mode 100644
index 1b05984..0000000
Binary files a/bin/com/webank/utils/JsonUtil.class and /dev/null differ
diff --git a/bin/com/webank/utils/MyX509TrustManager.class b/bin/com/webank/utils/MyX509TrustManager.class
deleted file mode 100644
index 4f2adfd..0000000
Binary files a/bin/com/webank/utils/MyX509TrustManager.class and /dev/null differ
diff --git a/bin/com/webank/utils/QianMingUitls.class b/bin/com/webank/utils/QianMingUitls.class
deleted file mode 100644
index d4eb31e..0000000
Binary files a/bin/com/webank/utils/QianMingUitls.class and /dev/null differ
diff --git a/bin/com/webank/utils/SSLClientUtil$1.class b/bin/com/webank/utils/SSLClientUtil$1.class
deleted file mode 100644
index 9b0aaa0..0000000
Binary files a/bin/com/webank/utils/SSLClientUtil$1.class and /dev/null differ
diff --git a/bin/com/webank/utils/SSLClientUtil.class b/bin/com/webank/utils/SSLClientUtil.class
deleted file mode 100644
index 509c12c..0000000
Binary files a/bin/com/webank/utils/SSLClientUtil.class and /dev/null differ
diff --git a/bin/com/webank/utils/SetEvidence.class b/bin/com/webank/utils/SetEvidence.class
deleted file mode 100644
index 23c8a60..0000000
Binary files a/bin/com/webank/utils/SetEvidence.class and /dev/null differ
diff --git a/bin/com/webank/utils/Sha1Uitls.class b/bin/com/webank/utils/Sha1Uitls.class
deleted file mode 100644
index 5820694..0000000
Binary files a/bin/com/webank/utils/Sha1Uitls.class and /dev/null differ
diff --git a/bin/com/webank/utils/Test64Bit.class b/bin/com/webank/utils/Test64Bit.class
deleted file mode 100644
index 5b4908f..0000000
Binary files a/bin/com/webank/utils/Test64Bit.class and /dev/null differ
diff --git a/bin/com/webank/utils/ValidateDictionaryUtils.class b/bin/com/webank/utils/ValidateDictionaryUtils.class
deleted file mode 100644
index 7ec1413..0000000
Binary files a/bin/com/webank/utils/ValidateDictionaryUtils.class and /dev/null differ
diff --git a/bin/com/webank/utils/ValidateSignUtils.class b/bin/com/webank/utils/ValidateSignUtils.class
deleted file mode 100644
index 9de90bd..0000000
Binary files a/bin/com/webank/utils/ValidateSignUtils.class and /dev/null differ
diff --git a/bin/com/webank/utils/ValidateSignUtils2.class b/bin/com/webank/utils/ValidateSignUtils2.class
deleted file mode 100644
index b308978..0000000
Binary files a/bin/com/webank/utils/ValidateSignUtils2.class and /dev/null differ
diff --git a/bin/com/webank/utils/getUtils.class b/bin/com/webank/utils/getUtils.class
deleted file mode 100644
index d6e2db6..0000000
Binary files a/bin/com/webank/utils/getUtils.class and /dev/null differ
diff --git a/bin/com/webank/utils/ggg.class b/bin/com/webank/utils/ggg.class
deleted file mode 100644
index c6f2270..0000000
Binary files a/bin/com/webank/utils/ggg.class and /dev/null differ
diff --git a/demo.iml b/demo.iml
deleted file mode 100644
index d992d03..0000000
--- a/demo.iml
+++ /dev/null
@@ -1,177 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/lib/MumbleJMeter-plugins-1.0-SNAPSHOT.jar b/lib/MumbleJMeter-plugins-1.0-SNAPSHOT.jar
deleted file mode 100644
index 922ffa2..0000000
Binary files a/lib/MumbleJMeter-plugins-1.0-SNAPSHOT.jar and /dev/null differ
diff --git a/lib/commons-beanutils-1.7.0.jar b/lib/commons-beanutils-1.7.0.jar
deleted file mode 100644
index b1b89c9..0000000
Binary files a/lib/commons-beanutils-1.7.0.jar and /dev/null differ
diff --git a/lib/commons-codec-1.4.jar b/lib/commons-codec-1.4.jar
deleted file mode 100644
index 458d432..0000000
Binary files a/lib/commons-codec-1.4.jar and /dev/null differ
diff --git a/lib/commons-collections-3.1.jar b/lib/commons-collections-3.1.jar
deleted file mode 100644
index 41e230f..0000000
Binary files a/lib/commons-collections-3.1.jar and /dev/null differ
diff --git a/lib/commons-httpclient-3.1.jar b/lib/commons-httpclient-3.1.jar
deleted file mode 100644
index 7c59774..0000000
Binary files a/lib/commons-httpclient-3.1.jar and /dev/null differ
diff --git a/lib/commons-lang-2.5.jar b/lib/commons-lang-2.5.jar
deleted file mode 100644
index ae491da..0000000
Binary files a/lib/commons-lang-2.5.jar and /dev/null differ
diff --git a/lib/commons-logging-1.1.1.jar b/lib/commons-logging-1.1.1.jar
deleted file mode 100644
index 1deef14..0000000
Binary files a/lib/commons-logging-1.1.1.jar and /dev/null differ
diff --git a/lib/ezmorph-1.0.3.jar b/lib/ezmorph-1.0.3.jar
deleted file mode 100644
index 179b8d6..0000000
Binary files a/lib/ezmorph-1.0.3.jar and /dev/null differ
diff --git a/lib/google-collections-1.0.jar b/lib/google-collections-1.0.jar
deleted file mode 100644
index 8e394fa..0000000
Binary files a/lib/google-collections-1.0.jar and /dev/null differ
diff --git a/lib/gson-2.8.0.jar b/lib/gson-2.8.0.jar
deleted file mode 100644
index 1235f63..0000000
Binary files a/lib/gson-2.8.0.jar and /dev/null differ
diff --git a/lib/guava-18.0.jar b/lib/guava-18.0.jar
deleted file mode 100644
index 8f89e49..0000000
Binary files a/lib/guava-18.0.jar and /dev/null differ
diff --git a/lib/guava-gwt-18.0.jar b/lib/guava-gwt-18.0.jar
deleted file mode 100644
index eaea729..0000000
Binary files a/lib/guava-gwt-18.0.jar and /dev/null differ
diff --git a/lib/httpclient-4.3.1.jar b/lib/httpclient-4.3.1.jar
deleted file mode 100644
index cdd1e38..0000000
Binary files a/lib/httpclient-4.3.1.jar and /dev/null differ
diff --git a/lib/httpcore-4.4.4.jar b/lib/httpcore-4.4.4.jar
deleted file mode 100644
index ac4a877..0000000
Binary files a/lib/httpcore-4.4.4.jar and /dev/null differ
diff --git a/lib/jmagick-6.6.9-javadoc.jar b/lib/jmagick-6.6.9-javadoc.jar
deleted file mode 100644
index 5926587..0000000
Binary files a/lib/jmagick-6.6.9-javadoc.jar and /dev/null differ
diff --git a/lib/json-lib-2.4-jdk15.jar b/lib/json-lib-2.4-jdk15.jar
deleted file mode 100644
index 68d4f3b..0000000
Binary files a/lib/json-lib-2.4-jdk15.jar and /dev/null differ
diff --git a/src/com/tengxunyun/h5face/GetH5FaceId.java b/src/com/tengxunyun/h5face/GetH5FaceId.java
deleted file mode 100644
index 913aa31..0000000
--- a/src/com/tengxunyun/h5face/GetH5FaceId.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package com.webank.h5face;
-
-import java.util.ArrayList;
-import java.util.Map;
-
-import com.webank.utils.HttpClientUtil;
-import com.webank.utils.JsonUtil;
-import com.webank.utils.QianMingUitls;
-
-import net.sf.json.JSONObject;
-
-/**
- *
- * [合作方后台上送身份信息 获取faceId]
- * [功能详细描述]
- *
- * @author fwq
- * @version [v1.0, 2017年11月7日]
- * @see [相关类/方法]
- * @since [产品/模块版本]
- */
-public class GetH5FaceId {
-
- final static String orderNo = "orderNo19959248596551";
- final static String name = "张三";
- final static String idNo = "429006199009157019";
- final static String version = "1.0.0";
-
- public static String getH5FaceIdStr(String userId,String apiticket,String webankAppId ) throws Exception{
-
- //设置签名所需要的参数
- ArrayList list = new ArrayList();
- list.add(webankAppId);
- list.add(orderNo);
- list.add(name);
- list.add(idNo);
- list.add(userId);
- list.add(version);
-
- //获取签名
- System.err.println("第二部执行获取H5FaceID请求的"+"sha1加密工具参数 "+list);
- System.out.println();
- String getqianming = QianMingUitls.getqianming(list, apiticket);
- System.out.println();
- System.out.println("获取执行H5FaceID请求的"+"SingTicket "+apiticket);
- System.out.println();
- System.out.println("获取执行H5FaceID请求的"+getqianming.length()+"位签名为 "+getqianming);
-
-
- final String Url="https://miniprogram-kyc.tencentcloudapi.com/api/server/h5/geth5faceid";
-
-
- JSONObject params = new JSONObject();
-
- params.put("webankAppId", webankAppId);
- params.put("orderNo", orderNo);
- params.put("name", name);
- params.put("idNo", idNo);
- params.put("userId", userId);
- params.put("version", version);
- params.put("sign", getqianming);
- /* params.put("sourcePhotoStr", sourcePhotoStr);
- params.put("sourcePhotoType", sourcePhotoType);*/
-
- HttpClientUtil httpClientUtil = new HttpClientUtil();
- String xmlData = httpClientUtil.doPost(Url, params.toString(), "utf-8");
- System.out.println("获取H5faceID请求返回值为 "+xmlData);
-
- Map map = JsonUtil.fromJson(xmlData.toString(), Map.class);
-
- Object object=map.get("result");
- String json = JsonUtil.toJson(object);
-
- Map fromJson = JsonUtil.fromJson(json, Map.class);
-
- System.err.println("h5faceId为 "+fromJson.get("h5faceId"));
-
- return (String) fromJson.get("h5faceId");
-
- }
-
-}
diff --git a/src/com/tengxunyun/h5face/Live02.java b/src/com/tengxunyun/h5face/Live02.java
deleted file mode 100644
index 435bda3..0000000
--- a/src/com/tengxunyun/h5face/Live02.java
+++ /dev/null
@@ -1,89 +0,0 @@
-package com.webank.h5face;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import com.webank.one.GetSIGNTicketTest;
-import com.webank.one.access_token;
-import org.apache.http.Consts;
-import org.apache.http.NameValuePair;
-import org.apache.http.client.entity.UrlEncodedFormEntity;
-import org.apache.http.message.BasicNameValuePair;
-import org.apache.http.util.EntityUtils;
-
-import com.google.common.collect.Lists;
-import com.webank.one.GetNONCETicket;
-import com.webank.utils.HttpClientUtil;
-import com.webank.utils.InvertCodeGeneratorUitls;
-import com.webank.utils.QianMingUitls;
-/**
- *
- * [公众号启动H5刷脸02]
- * [功能详细描述]
- *
- * @author fwq
- * @version [v1.0, 2017年11月6日]
- * @see [相关类/方法]
- * @since [产品/模块版本]
- */
-public class Live02 {
-
- final static String appid = "";
- final static String secret = "";
- final static String version = "1.0.0";
- final static String orderNo = "orderNo19959248596551";
- final static String userId = "userID19959248596551";
- final static String url = "https://www.baidu.com";
- final static String resultType = "2";
-
- public static void main(String[] args) throws Exception, Exception{
-
- //设置签名所需要的参数
-
- List codes = InvertCodeGeneratorUitls.genCodes(32, 2);
- String code=codes.get(0);
- String userId=codes.get(1);
- String tokne= access_token.getToken(appid,secret);
- String nonceTicket = GetNONCETicket.getNONCETicket(tokne,userId,appid);
- ArrayList list = new ArrayList();
- list.add(appid);
- list.add(version);
- list.add(code);
- list.add(orderNo);
- list.add(userId);
- String getqianming = QianMingUitls.getqianming(list, nonceTicket);
- System.err.println();
- System.err.println("第三步执行H5Login请求的"+"sha1加密工具参数 "+list);
- System.out.println();
- System.out.println("获取执行H5Login请求的 "+getqianming.length()+"位签名为 "+getqianming);
- System.out.println("32位字母加数字随机数 "+code);
- System.out.println();
- System.out.println("获取执行H5Login请求的"+"NonceTicket为 "+nonceTicket);
- System.out.println();
-
- List params = Lists.newArrayList();
- params.add(new BasicNameValuePair("webankAppId", appid));
- params.add(new BasicNameValuePair("version", version));
- params.add(new BasicNameValuePair("nonce", code));
- params.add(new BasicNameValuePair("orderNo", orderNo));
- params.add(new BasicNameValuePair("url", url));
- params.add(new BasicNameValuePair("resultType",resultType));
- params.add(new BasicNameValuePair("userId", userId));
- params.add(new BasicNameValuePair("sign", getqianming));
- String str = "";
- //转换为键值对
- str = EntityUtils.toString(new UrlEncodedFormEntity(params, Consts.UTF_8));
- System.out.println(str);
- //创建Get请求
-
- final String Url="https://miniprogram-kyc.tencentcloudapi.com/api/wx/livelogin"+"?"+str;
- System.out.println(Url);
-
-
- /* HttpClientUtil httpClientUtil = new HttpClientUtil();
- String xmlData = httpClientUtil.sendGetRequest(Url, "utf8");
- System.out.println(xmlData);*/
- }
-
-
-}
diff --git a/src/com/tengxunyun/h5face/WebLogin2.java b/src/com/tengxunyun/h5face/WebLogin2.java
deleted file mode 100644
index 58b155e..0000000
--- a/src/com/tengxunyun/h5face/WebLogin2.java
+++ /dev/null
@@ -1,95 +0,0 @@
-package com.webank.h5face;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import com.webank.one.GetSIGNTicketTest;
-import com.webank.one.access_token;
-import org.apache.http.Consts;
-import org.apache.http.NameValuePair;
-import org.apache.http.client.entity.UrlEncodedFormEntity;
-import org.apache.http.message.BasicNameValuePair;
-import org.apache.http.util.EntityUtils;
-
-import com.google.common.collect.Lists;
-import com.webank.one.GetNONCETicket;
-import com.webank.utils.HttpClientUtil;
-import com.webank.utils.InvertCodeGeneratorUitls;
-import com.webank.utils.QianMingUitls;
-/**
- *
- * [公众号启动H5刷脸02]
- * [功能详细描述]
- *
- * @author fwq
- * @version [v1.0, 2017年11月6日]
- * @see [相关类/方法]
- * @since [产品/模块版本]
- */
-public class WebLogin2 {
-
- final static String appid = "";
- final static String secret = "";
- final static String version = "1.0.0";
- final static String orderNo = "orderNo19959248596551";
- final static String url = "https://www.baidu.com";
- final static String resultType = "2";
-
- public static void main(String[] args) throws Exception, Exception{
-
- //设置签名所需要的参数
- List codes = InvertCodeGeneratorUitls.genCodes(32, 2);
- String code=codes.get(0);
- String userId=codes.get(1);
- String tokne=access_token.getToken(appid,secret);
-
- String signticket=GetSIGNTicketTest.getSignticket(appid,tokne);
-
- String nonceTicket = GetNONCETicket.getNONCETicket(tokne,userId,appid);
- String h5FaceIdStr = GetH5FaceId.getH5FaceIdStr(userId,signticket,appid);
- ArrayList list = new ArrayList();
- list.add(appid);
- list.add(version);
- list.add(code);
- list.add(orderNo);
- list.add(h5FaceIdStr);
- list.add(userId);
-
-
- String getqianming = QianMingUitls.getqianming(list, nonceTicket);
- System.err.println();
- System.err.println("第三步执行H5Login请求的"+"sha1加密工具参数 "+list);
- System.out.println();
- System.out.println("获取执行H5Login请求的 "+getqianming.length()+"位签名为 "+getqianming);
- System.out.println("32位字母加数字随机数 "+code);
- System.out.println();
- System.out.println("获取执行H5Login请求的"+"NonceTicket为 "+nonceTicket);
- System.out.println();
-
- List params = Lists.newArrayList();
- params.add(new BasicNameValuePair("webankAppId", appid));
- params.add(new BasicNameValuePair("version", version));
- params.add(new BasicNameValuePair("nonce", code));
- params.add(new BasicNameValuePair("orderNo", orderNo));
- params.add(new BasicNameValuePair("h5faceId", h5FaceIdStr));
- params.add(new BasicNameValuePair("url", url));
- params.add(new BasicNameValuePair("resultType",resultType));
- params.add(new BasicNameValuePair("userId", userId));
- params.add(new BasicNameValuePair("sign", getqianming));
- String str = "";
- //转换为键值对
- str = EntityUtils.toString(new UrlEncodedFormEntity(params, Consts.UTF_8));
- System.out.println(str);
- //创建Get请求
-
- final String Url="https://miniprogram-kyc.tencentcloudapi.com/api/web/login"+"?"+str;
- System.out.println(Url);
-
-
- /*HttpClientUtil httpClientUtil = new HttpClientUtil();
- String xmlData = httpClientUtil.sendGetRequest(Url, "utf8");
- System.out.println(xmlData);*/
- }
-
-
-}
diff --git a/src/com/tengxunyun/h5ocr/H5OcrLogin02.java b/src/com/tengxunyun/h5ocr/H5OcrLogin02.java
deleted file mode 100644
index 2a3ae2b..0000000
--- a/src/com/tengxunyun/h5ocr/H5OcrLogin02.java
+++ /dev/null
@@ -1,89 +0,0 @@
-package com.webank.h5ocr;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import com.webank.one.access_token;
-import org.apache.http.Consts;
-import org.apache.http.NameValuePair;
-import org.apache.http.client.entity.UrlEncodedFormEntity;
-import org.apache.http.message.BasicNameValuePair;
-import org.apache.http.util.EntityUtils;
-
-import com.google.common.collect.Lists;
-import com.webank.one.GetNONCETicket;
-import com.webank.utils.HttpClientUtil;
-import com.webank.utils.InvertCodeGeneratorUitls;
-import com.webank.utils.QianMingUitls;
-/**
- *
- * [公众号启动H5刷脸02]
- * [功能详细描述]
- *
- * @author fwq
- * @version [v1.0, 2017年11月6日]
- * @see [相关类/方法]
- * @since [产品/模块版本]
- */
-public class H5OcrLogin02 {
-
- final static String appid = "";
- final static String secret = "";
- final static String version = "1.0.0";
- final static String url = "https://www.baidu.com";
- final static String ocrFlag = "2";
-
- public static void main(String[] args) throws Exception, Exception{
-
- //设置签名所需要的参数
- List codes = InvertCodeGeneratorUitls.genCodes(32, 3);
- String code=codes.get(0);
- String userId=codes.get(1);
- String orderNo = codes.get(2);
- String tokne= access_token.getToken(appid,secret);
- String nonceTicket = GetNONCETicket.getNONCETicket(tokne,userId,appid);
- ArrayList list = new ArrayList();
- list.add(appid);
- list.add(version);
- list.add(code);
- list.add(orderNo);
- list.add(userId);
-
- String sign = QianMingUitls.getqianming(list, nonceTicket);
- System.err.println();
- System.err.println("第二步执行h5ocrlogin请求的"+"sha1加密工具参数 "+list);
- System.out.println();
- System.out.println("获取执行h5ocrlogin请求的 "+sign.length()+"位签名为 "+sign);
- System.out.println("32位字母加数字随机数 "+code);
- System.out.println();
- System.out.println("获取执行h5ocrlogin请求的"+"NonceTicket为 "+nonceTicket);
- System.out.println();
-
-
- /*"https://sit-ida.webank.com/api/h5/ocrlogin?webankAppId="+webankAppId+"&version="+version+"&"
- + "nonce="+nonce+"&orderNo="+orderNo+"&url="+url+"&userId="+userId+"&sign="+sign+"";*/
-
- List params = Lists.newArrayList();
- params.add(new BasicNameValuePair("webankAppId", appid));
- params.add(new BasicNameValuePair("version", version));
- params.add(new BasicNameValuePair("nonce", code));
- params.add(new BasicNameValuePair("orderNo", orderNo));
- params.add(new BasicNameValuePair("url", url));
- params.add(new BasicNameValuePair("userId", userId));
- params.add(new BasicNameValuePair("sign", sign));
- params.add(new BasicNameValuePair("ocrFlag", ocrFlag));
- String str = "";
- //转换为键值对
- str = EntityUtils.toString(new UrlEncodedFormEntity(params, Consts.UTF_8));
- System.out.println(str);
- //创建Get请求
-
- final String Url="https://miniprogram-kyc.tencentcloudapi.com/api/h5/ocrlogin"+"?"+str;
- System.out.println(Url);
- /*
- HttpClientUtil httpClientUtil = new HttpClientUtil();
- String xmlData = httpClientUtil.sendGetRequest(Url, "utf8");*/
- }
-
-
-}
diff --git a/src/com/tengxunyun/h5result/GetLiveResult.java b/src/com/tengxunyun/h5result/GetLiveResult.java
deleted file mode 100644
index 1bda361..0000000
--- a/src/com/tengxunyun/h5result/GetLiveResult.java
+++ /dev/null
@@ -1,73 +0,0 @@
-package com.webank.h5result;
-
-import java.io.BufferedReader;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.net.ssl.HttpsURLConnection;
-import javax.net.ssl.SSLContext;
-import javax.net.ssl.SSLSocketFactory;
-import javax.net.ssl.TrustManager;
-
-import com.webank.one.GetNONCETicket;
-import com.webank.one.GetSIGNTicketTest;
-import com.webank.one.access_token;
-import com.webank.utils.InvertCodeGeneratorUitls;
-import com.webank.utils.MyX509TrustManager;
-import com.webank.utils.QianMingUitls;
-import com.webank.utils.Sha1Uitls;
-import com.webank.utils.getUtils;
-/**
- *
- * [人脸识别 服务端查询结果]
- * [功能详细描述]
- *
- * @author fwq
- * @version [v1.0, 2017年11月6日]
- * @see [相关类/方法]
- * @since [产品/模块版本]
- */
-public class GetLiveResult {
-
- final static String appid = "";
- final static String secret = "";
- final static String version = "1.0.0";
- final static String orderNo = "1234567890123456789012345678900a";
-
- public static void main(String[] args) throws Exception{
-
- String tokne= access_token.getToken(appid,secret);
-
- String signticket= GetSIGNTicketTest.getSignticket(appid,tokne);
-
- //设置签名所需要的参数
- List codes = InvertCodeGeneratorUitls.genCodes(32, 1);
- String nonce=codes.get(0);
- ArrayList list = new ArrayList();
- list.add(appid);
- list.add(version);
- list.add(nonce);
- list.add(orderNo);
-
- String sign = QianMingUitls.getqianming(list, signticket);
- System.err.println();
- System.err.println("第四步执行刷脸结果请求的"+"sha1加密工具参数 "+list);
- System.out.println();
- System.out.println("获取执行刷脸结果请求的 "+sign.length()+"位签名为 "+sign);
- System.out.println("32位字母加数字随机数 "+nonce);
- System.out.println();
- System.out.println("获取执行刷脸结果请求的"+"sinTicket为 "+signticket);
- System.out.println();
-
- String Url="https://miniprogram-kyc.tencentcloudapi.com/api/server/getLiveResult?app_id="+appid+"&nonce="+nonce+"&order_no="+orderNo+"&version=1.0.0&sign="+sign+"&get_file=1";
- //建立连接
-
- StringBuffer stringBuffer = getUtils.get(Url);
- System.out.println(stringBuffer);
-
- }
-
-}
diff --git a/src/com/tengxunyun/h5result/H5FaceResults.java b/src/com/tengxunyun/h5result/H5FaceResults.java
deleted file mode 100644
index b72c71a..0000000
--- a/src/com/tengxunyun/h5result/H5FaceResults.java
+++ /dev/null
@@ -1,72 +0,0 @@
-package com.webank.h5result;
-
-import java.io.BufferedReader;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.net.ssl.HttpsURLConnection;
-import javax.net.ssl.SSLContext;
-import javax.net.ssl.SSLSocketFactory;
-import javax.net.ssl.TrustManager;
-
-import com.webank.one.GetNONCETicket;
-import com.webank.one.GetSIGNTicketTest;
-import com.webank.one.access_token;
-import com.webank.utils.InvertCodeGeneratorUitls;
-import com.webank.utils.MyX509TrustManager;
-import com.webank.utils.QianMingUitls;
-import com.webank.utils.Sha1Uitls;
-import com.webank.utils.getUtils;
-/**
- *
- * [人脸识别 服务端查询结果]
- * [功能详细描述]
- *
- * @author fwq
- * @version [v1.0, 2017年11月6日]
- * @see [相关类/方法]
- * @since [产品/模块版本]
- */
-public class H5FaceResults {
-
- final static String appid = "";
- final static String secret = "";
- final static String version = "1.0.0";
- final static String orderNo = "1234567890123456789012345678900a";
-
- public static void main(String[] args) throws Exception{
-
- String tokne= access_token.getToken(appid,secret);
-
- String signticket= GetSIGNTicketTest.getSignticket(appid,tokne);
-
- //设置签名所需要的参数
- List codes = InvertCodeGeneratorUitls.genCodes(32, 1);
- String nonce=codes.get(0);
- ArrayList list = new ArrayList();
- list.add(appid);
- list.add(version);
- list.add(nonce);
- list.add(orderNo);
-
- String sign = QianMingUitls.getqianming(list, signticket);
- System.err.println();
- System.err.println("第四步执行刷脸结果请求的"+"sha1加密工具参数 "+list);
- System.out.println();
- System.out.println("获取执行刷脸结果请求的 "+sign.length()+"位签名为 "+sign);
- System.out.println("32位字母加数字随机数 "+nonce);
- System.out.println();
- System.out.println("获取执行刷脸结果请求的"+"sinTicket为 "+signticket);
- System.out.println();
-
- String Url="https://miniprogram-kyc.tencentcloudapi.com/api/server/sync?app_id="+appid+"&nonce="+nonce+"&order_no="+orderNo+"&version=1.0.0&sign="+sign+"&get_file=1";
- //建立连接
-
- StringBuffer stringBuffer = getUtils.get(Url);
-
- }
-
-}
diff --git a/src/com/tengxunyun/h5result/OcrResults.java b/src/com/tengxunyun/h5result/OcrResults.java
deleted file mode 100644
index 0511b47..0000000
--- a/src/com/tengxunyun/h5result/OcrResults.java
+++ /dev/null
@@ -1,109 +0,0 @@
-package com.webank.h5result;
-
-import java.io.BufferedReader;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.net.ssl.HttpsURLConnection;
-import javax.net.ssl.SSLContext;
-import javax.net.ssl.SSLSocketFactory;
-import javax.net.ssl.TrustManager;
-
-import com.webank.one.GetNONCETicket;
-import com.webank.one.GetSIGNTicketTest;
-import com.webank.one.access_token;
-import com.webank.utils.InvertCodeGeneratorUitls;
-import com.webank.utils.MyX509TrustManager;
-import com.webank.utils.QianMingUitls;
-import com.webank.utils.Sha1Uitls;
-/**
- *
- * [人脸识别 服务端查询结果]
- * [功能详细描述]
- *
- * @author fwq
- * @version [v1.0, 2017年11月6日]
- * @see [相关类/方法]
- * @since [产品/模块版本]
- */
-public class OcrResults {
-
-
- final static String appid = "";
- final static String secret = "";
- final static String version = "1.0.0";
- final static String orderNo = "1234567890123456789012345678900a";
-
- public static void main(String[] args) throws Exception{
-
- String tokne= access_token.getToken(appid,secret);
-
- String signticket= GetSIGNTicketTest.getSignticket(appid,tokne);
-
-
- //设置签名所需要的参数
- List codes = InvertCodeGeneratorUitls.genCodes(32, 1);
- String nonce=codes.get(0);
- ArrayList list = new ArrayList();
- list.add(appid);
- list.add(version);
- list.add(nonce);
- list.add(orderNo);
-
- String sign = QianMingUitls.getqianming(list, signticket);
- System.err.println();
- System.err.println("第四步执行刷脸结果请求的"+"sha1加密工具参数 "+list);
- System.out.println();
- System.out.println("获取执行刷脸结果请求的 "+sign.length()+"位签名为 "+sign);
- System.out.println("32位字母加数字随机数 "+nonce);
- System.out.println();
- System.out.println("获取执行刷脸结果请求的"+"sinTicket为 "+signticket);
- System.out.println();
-
- String tokenUrl="https://miniprogram-kyc.tencentcloudapi.com/api/server/getOcrResult?app_id="+appid+"&nonce="+nonce+"&order_no="+orderNo+"&version=1.0.0&sign="+sign+"&get_file=1";
- //建立连接
- URL url = new URL(tokenUrl);
-
-
- System.out.println("获取请求路径为 "+url);
- HttpsURLConnection httpUrlConn = (HttpsURLConnection) url.openConnection();
-
- // 创建SSLContext对象,并使用我们指定的信任管理器初始化
- TrustManager[] tm = { new MyX509TrustManager() };
- SSLContext sslContext = SSLContext.getInstance("SSL", "SunJSSE");
- sslContext.init(null, tm, new java.security.SecureRandom());
- // 从上述SSLContext对象中得到SSLSocketFactory对象
- SSLSocketFactory ssf = sslContext.getSocketFactory();
-
- httpUrlConn.setSSLSocketFactory(ssf);
- httpUrlConn.setDoOutput(true);
- httpUrlConn.setDoInput(true);
-
- // 设置请求方式(GET/POST)
- httpUrlConn.setRequestMethod("GET");
-
- // 取得输入流
- InputStream inputStream = httpUrlConn.getInputStream();
- InputStreamReader inputStreamReader = new InputStreamReader(inputStream, "utf-8");
- BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
- //读取响应内容
- StringBuffer buffer = new StringBuffer();
- String str = null;
- while ((str = bufferedReader.readLine()) != null) {
- buffer.append(str);
- }
- bufferedReader.close();
- inputStreamReader.close();
- // 释放资源
- inputStream.close();
- httpUrlConn.disconnect();
- //输出返回结果
- System.out.println(buffer);
-
-
- }
-
-}
diff --git a/src/com/tengxunyun/one/GetNONCETicket.java b/src/com/tengxunyun/one/GetNONCETicket.java
deleted file mode 100644
index bdfa47b..0000000
--- a/src/com/tengxunyun/one/GetNONCETicket.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package com.webank.one;
-
-import java.io.BufferedReader;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.net.URL;
-import java.util.List;
-import java.util.Map;
-
-import javax.net.ssl.HttpsURLConnection;
-import javax.net.ssl.SSLContext;
-import javax.net.ssl.SSLSocketFactory;
-import javax.net.ssl.TrustManager;
-
-import com.webank.utils.InvertCodeGeneratorUitls;
-import com.webank.utils.JsonUtil;
-import com.webank.utils.MyX509TrustManager;
-import com.webank.utils.getUtils;
-/**
- *
- * [获取nonceticket]
- * [功能详细描述]
- *
- * @author fwq
- * @version [v1.0, 2017年11月7日]
- * @see [相关类/方法]
- * @since [产品/模块版本]
- */
-public class GetNONCETicket {
-
- public static String getNONCETicket(String access_token,String userId,String appid)throws Exception {
-
- //修改appID,secret
- String nonceTicketURL="https://miniprogram-kyc.tencentcloudapi.com/api/oauth2/api_ticket?app_id="+appid+"&access_token="+access_token+"&type=NONCE&version=1.0.0&user_id="+userId+"";
- StringBuffer stringBuffer = getUtils.get(nonceTicketURL);
- System.out.println("第一步:获取nonceTicket请求返回值为 "+stringBuffer);
- System.out.println();
- Map map = JsonUtil.fromJson(stringBuffer.toString(), Map.class);
-
- List