You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by bo...@apache.org on 2023/09/16 13:44:16 UTC
[streampipes] 02/02: chore: remove outdated `throws` annotations
This is an automated email from the ASF dual-hosted git repository.
bossenti pushed a commit to branch chore/replace-random-ascii
in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit e3b8a11b705b8955236ea21b03c8308ed5d8e153
Author: bossenti <bo...@posteo.de>
AuthorDate: Sat Sep 16 15:44:02 2023 +0200
chore: remove outdated `throws` annotations
---
.../org/apache/streampipes/user/management/util/PasswordUtil.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/streampipes-user-management/src/main/java/org/apache/streampipes/user/management/util/PasswordUtil.java b/streampipes-user-management/src/main/java/org/apache/streampipes/user/management/util/PasswordUtil.java
index d7c7922f7..779636ec4 100644
--- a/streampipes-user-management/src/main/java/org/apache/streampipes/user/management/util/PasswordUtil.java
+++ b/streampipes-user-management/src/main/java/org/apache/streampipes/user/management/util/PasswordUtil.java
@@ -51,7 +51,7 @@ public class PasswordUtil {
return iterations + ":" + toHex(salt) + ":" + toHex(hash);
}
- private static String toHex(byte[] array) throws NoSuchAlgorithmException {
+ private static String toHex(byte[] array) {
BigInteger bi = new BigInteger(1, array);
String hex = bi.toString(16);
int paddingLength = (array.length * 2) - hex.length();
@@ -82,7 +82,7 @@ public class PasswordUtil {
}
- private static byte[] fromHex(String hex) throws NoSuchAlgorithmException {
+ private static byte[] fromHex(String hex) {
byte[] bytes = new byte[hex.length() / 2];
for (int i = 0; i < bytes.length; i++) {
bytes[i] = (byte) Integer.parseInt(hex.substring(2 * i, 2 * i + 2), 16);