From 87e91395980d7a0e7b057a6069e672fb86d462aa Mon Sep 17 00:00:00 2001 From: wangpeng Date: Wed, 9 Jun 2021 10:13:23 +0800 Subject: [PATCH] =?UTF-8?q?checkstyle=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ohos/securestoragelibrary/KeystoreTool.java | 17 ++++++++++++++++- .../ohos/securestoragelibrary/PRNGFixes.java | 11 +++++++++++ .../securestoragelibrary/SecurePreferences.java | 16 ++++++++++++++++ .../SecureStorageException.java | 16 ++++++++++++++++ 4 files changed, 59 insertions(+), 1 deletion(-) diff --git a/securestoragelibrary/src/main/java/de/adorsys/ohos/securestoragelibrary/KeystoreTool.java b/securestoragelibrary/src/main/java/de/adorsys/ohos/securestoragelibrary/KeystoreTool.java index 842e835..96d24e0 100644 --- a/securestoragelibrary/src/main/java/de/adorsys/ohos/securestoragelibrary/KeystoreTool.java +++ b/securestoragelibrary/src/main/java/de/adorsys/ohos/securestoragelibrary/KeystoreTool.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2017 adorsys GmbH & Co. KG + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package de.adorsys.ohos.securestoragelibrary; import ohos.agp.render.render3d.BuildConfig; @@ -17,7 +33,6 @@ import java.util.Base64; import static de.adorsys.ohos.securestoragelibrary.SecureStorageException.ExceptionType.CRYPTO_EXCEPTION; import static de.adorsys.ohos.securestoragelibrary.SecureStorageException.ExceptionType.KEYSTORE_EXCEPTION; - public final class KeystoreTool { private static final HiLogLabel LABEL = new HiLogLabel(HiLog.LOG_APP, 0x000110, "KeystoreTool"); private static final String KEY_ALIAS = "rsaKeyPair"; diff --git a/securestoragelibrary/src/main/java/de/adorsys/ohos/securestoragelibrary/PRNGFixes.java b/securestoragelibrary/src/main/java/de/adorsys/ohos/securestoragelibrary/PRNGFixes.java index d453976..519bb23 100644 --- a/securestoragelibrary/src/main/java/de/adorsys/ohos/securestoragelibrary/PRNGFixes.java +++ b/securestoragelibrary/src/main/java/de/adorsys/ohos/securestoragelibrary/PRNGFixes.java @@ -1,5 +1,16 @@ package de.adorsys.ohos.securestoragelibrary; +/* + * This software is provided 'as-is', without any express or implied + * warranty. In no event will Google be held liable for any damages + * arising from the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, as long as the origin is not misrepresented. + */ + + import ohos.hiviewdfx.HiLog; import ohos.hiviewdfx.HiLogLabel; import ohos.os.ProcessManager; diff --git a/securestoragelibrary/src/main/java/de/adorsys/ohos/securestoragelibrary/SecurePreferences.java b/securestoragelibrary/src/main/java/de/adorsys/ohos/securestoragelibrary/SecurePreferences.java index d2055ba..f280376 100644 --- a/securestoragelibrary/src/main/java/de/adorsys/ohos/securestoragelibrary/SecurePreferences.java +++ b/securestoragelibrary/src/main/java/de/adorsys/ohos/securestoragelibrary/SecurePreferences.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2017 adorsys GmbH & Co. KG + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package de.adorsys.ohos.securestoragelibrary; import ohos.app.Context; diff --git a/securestoragelibrary/src/main/java/de/adorsys/ohos/securestoragelibrary/SecureStorageException.java b/securestoragelibrary/src/main/java/de/adorsys/ohos/securestoragelibrary/SecureStorageException.java index 84ea207..edea4da 100644 --- a/securestoragelibrary/src/main/java/de/adorsys/ohos/securestoragelibrary/SecureStorageException.java +++ b/securestoragelibrary/src/main/java/de/adorsys/ohos/securestoragelibrary/SecureStorageException.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2017 adorsys GmbH & Co. KG + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package de.adorsys.ohos.securestoragelibrary; /** -- Gitee