You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2021/06/17 10:34:33 UTC
[sling-org-apache-sling-commons-crypto] 01/07: remove obsolete
exceptions
This is an automated email from the ASF dual-hosted git repository.
olli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-crypto.git
commit 1715c09e21401d7c1723d843e01c4bf4ae6633ba
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Thu Jun 17 11:31:50 2021 +0200
remove obsolete exceptions
---
.../sling/commons/crypto/internal/SecureRandomSaltProvider.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/sling/commons/crypto/internal/SecureRandomSaltProvider.java b/src/main/java/org/apache/sling/commons/crypto/internal/SecureRandomSaltProvider.java
index e2695fe..c643840 100644
--- a/src/main/java/org/apache/sling/commons/crypto/internal/SecureRandomSaltProvider.java
+++ b/src/main/java/org/apache/sling/commons/crypto/internal/SecureRandomSaltProvider.java
@@ -18,7 +18,6 @@
*/
package org.apache.sling.commons.crypto.internal;
-import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.util.Objects;
@@ -56,7 +55,7 @@ public class SecureRandomSaltProvider implements SaltProvider {
}
@Activate
- protected void activate(final SecureRandomSaltProviderConfiguration configuration) throws IOException, NoSuchAlgorithmException {
+ protected void activate(final SecureRandomSaltProviderConfiguration configuration) throws NoSuchAlgorithmException {
logger.debug("activating");
this.configuration = configuration;
secureRandom = SecureRandom.getInstance(configuration.algorithm());
@@ -64,7 +63,7 @@ public class SecureRandomSaltProvider implements SaltProvider {
}
@Modified
- protected void modified(final SecureRandomSaltProviderConfiguration configuration) throws IOException, NoSuchAlgorithmException {
+ protected void modified(final SecureRandomSaltProviderConfiguration configuration) throws NoSuchAlgorithmException {
logger.debug("modifying");
this.configuration = configuration;
secureRandom = SecureRandom.getInstance(configuration.algorithm());