aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server/KeystoreManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/server/KeystoreManager.java')
-rw-r--r--src/main/java/com/juick/server/KeystoreManager.java12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/main/java/com/juick/server/KeystoreManager.java b/src/main/java/com/juick/server/KeystoreManager.java
index 61caba82..b1ce7a56 100644
--- a/src/main/java/com/juick/server/KeystoreManager.java
+++ b/src/main/java/com/juick/server/KeystoreManager.java
@@ -17,7 +17,7 @@ import java.util.Arrays;
import java.util.stream.Collectors;
public class KeystoreManager {
- private static final Logger logger = LoggerFactory.getLogger("com.juick.server");
+ private static final Logger logger = LoggerFactory.getLogger("ActivityPub");
private String keystorePassword;
@@ -38,16 +38,8 @@ public class KeystoreManager {
}
}
- public KeyStore getKeystore() {
- return ks;
- }
-
- public KeyManagerFactory getKeymanagerFactory() {
- return kmf;
- }
-
private KeyPair getKeyPair() {
- Key privateKey = null;
+ Key privateKey;
try {
privateKey = ks.getKey("1", keystorePassword.toCharArray());
Certificate certificate = ks.getCertificate("1");