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 842e835b50dafbd44473b3e6131392827e8070e7..96d24e01732ff3d7da05c6e0d475afdb4ddc0eb3 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 d45397627e2995193de02f294973f2efb2f9ce5c..519bb23b845b62a19cc2877a7d9b372ea88433bc 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 d2055baf4a324d16ce423ac946a866e76716ec80..f28037647f918dade67196231ec1e4cc5eb7472f 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 84ea207e0cba17103a19d433305ca6dab98ca003..edea4daaae0c718c0a5f4847e79f7ff69d004505 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; /**