diff options
author | Vitaly Takmazov | 2021-08-22 06:55:37 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2021-08-22 06:55:37 +0300 |
commit | 03d42d6e6ccaee4ff9d2a0808e51e5f9f0dc18c3 (patch) | |
tree | a3a6f5ef310b2130ff6fdf541f34facecd8bf2b3 /src/main/java/com/juick/KeystoreManager.java | |
parent | 9100b5bda037fcd1b051b98585744077132320bc (diff) |
ActivityPub: return Application profile for service user
Diffstat (limited to 'src/main/java/com/juick/KeystoreManager.java')
-rw-r--r-- | src/main/java/com/juick/KeystoreManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/KeystoreManager.java b/src/main/java/com/juick/KeystoreManager.java index f968f627..32596170 100644 --- a/src/main/java/com/juick/KeystoreManager.java +++ b/src/main/java/com/juick/KeystoreManager.java @@ -17,7 +17,7 @@ package com.juick; -import com.juick.www.api.activity.model.objects.SecurityObject; +import com.juick.www.api.activity.model.objects.Actor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.core.io.Resource; @@ -74,7 +74,7 @@ public class KeystoreManager { return String.format("-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----\n", String.join("\n", key)); } - public static PublicKey publicKeyOf(SecurityObject person) { + public static PublicKey publicKeyOf(Actor person) { String pubkeyPem = person.getPublicKey().getPublicKeyPem(); String[] rawKey = pubkeyPem.split("\\n"); String pubkeyData = String.join("", Arrays.asList(rawKey).subList(1, rawKey.length - 1)); |