From c480a220c7c67e5686a75f5a38fa2120d8fdc572 Mon Sep 17 00:00:00 2001 From: wuhaoyang <2507865306@qq.com> Date: Tue, 30 Jan 2024 15:17:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0java=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E8=A2=AB=E6=B5=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sonar => resources}/PasswordInputTagChecker.html | 0 .../resources/configFile/ConfigurationFileChecker.conf | 2 ++ .../resources/configFile/ConfigurationFileChecker.ini | 3 +++ .../resources/configFile/ConfigurationFileChecker.json | 5 +++++ .../configFile/ConfigurationFileChecker.properties | 2 ++ .../resources/configFile/ConfigurationFileChecker.xml | 7 +++++++ .../resources/configFile/ConfigurationFileChecker.yml | 3 +++ .../main/resources/sessionDates/application.properties | 9 +++++++++ .../java/src/main/resources/sessionDates/application.yml | 4 ++++ 9 files changed, 35 insertions(+) rename uut-example/java/src/main/{java/com/keyware/sonar => resources}/PasswordInputTagChecker.html (100%) create mode 100644 uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.conf create mode 100644 uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.ini create mode 100644 uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.json create mode 100644 uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.properties create mode 100644 uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.xml create mode 100644 uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.yml create mode 100644 uut-example/java/src/main/resources/sessionDates/application.properties create mode 100644 uut-example/java/src/main/resources/sessionDates/application.yml diff --git a/uut-example/java/src/main/java/com/keyware/sonar/PasswordInputTagChecker.html b/uut-example/java/src/main/resources/PasswordInputTagChecker.html similarity index 100% rename from uut-example/java/src/main/java/com/keyware/sonar/PasswordInputTagChecker.html rename to uut-example/java/src/main/resources/PasswordInputTagChecker.html diff --git a/uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.conf b/uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.conf new file mode 100644 index 0000000..66b164a --- /dev/null +++ b/uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.conf @@ -0,0 +1,2 @@ +# 这是一个.conf配置文件 +password = confPassword \ No newline at end of file diff --git a/uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.ini b/uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.ini new file mode 100644 index 0000000..2361077 --- /dev/null +++ b/uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.ini @@ -0,0 +1,3 @@ +[UserCredentials] +username = exampleUser +password = iniPassword \ No newline at end of file diff --git a/uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.json b/uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.json new file mode 100644 index 0000000..fb056e5 --- /dev/null +++ b/uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.json @@ -0,0 +1,5 @@ +{ + "username": "john_doe", + "password": "jsonPassword", + "email": "john.doe@example.com" +} diff --git a/uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.properties b/uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.properties new file mode 100644 index 0000000..39585ab --- /dev/null +++ b/uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.properties @@ -0,0 +1,2 @@ +# ConfigurationFileChecker.properties +password=propertiesPassword \ No newline at end of file diff --git a/uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.xml b/uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.xml new file mode 100644 index 0000000..757e3c6 --- /dev/null +++ b/uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.xml @@ -0,0 +1,7 @@ + + + + exampleUser + xmlPassword + + diff --git a/uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.yml b/uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.yml new file mode 100644 index 0000000..29c8a20 --- /dev/null +++ b/uut-example/java/src/main/resources/configFile/ConfigurationFileChecker.yml @@ -0,0 +1,3 @@ +database: + user: admin + password: ymlPassword \ No newline at end of file diff --git a/uut-example/java/src/main/resources/sessionDates/application.properties b/uut-example/java/src/main/resources/sessionDates/application.properties new file mode 100644 index 0000000..b918494 --- /dev/null +++ b/uut-example/java/src/main/resources/sessionDates/application.properties @@ -0,0 +1,9 @@ +# +# Copyright (c) 2023 - 2024. KeyWare.Co.Ltd All rights reserved. +# 项目名称:信息安全性设计准则检查插件 +# 项目描述:用于检查源代码的安全性设计准则的Sonarqube插件 +# 版权说明:本软件属北京关键科技股份有限公司所有,在未获得北京关键科技股份有限公司正式授权情况下,任何企业和个人,不能获取、阅读、安装、传播本软件涉及的任何受知识产权保护的内容。 +# + +# 设置会话超时时间为30分钟 +server.servlet.session.timeout=30m \ No newline at end of file diff --git a/uut-example/java/src/main/resources/sessionDates/application.yml b/uut-example/java/src/main/resources/sessionDates/application.yml new file mode 100644 index 0000000..191582c --- /dev/null +++ b/uut-example/java/src/main/resources/sessionDates/application.yml @@ -0,0 +1,4 @@ +server: + servlet: + session: + timeout: 30m \ No newline at end of file