Interface DiscoverExternalActor
- All Known Implementing Classes:
DiscoverExternalActorDefault
public interface DiscoverExternalActor
-
Method Summary
Modifier and TypeMethodDescriptionTry to find an external Actor by the passed identifier.discoverPublicKey
(String keyIdOfSignature) The keyIdOfSignature regarding a HTTPSignature can reference different things, see: https://swicg.github.io/activitypub-http-signature/#how-to-obtain-a-signature-s-public-key This method helps you to solve this mess and try to get the public key.
-
Method Details
-
discover
Try to find an external Actor by the passed identifier.- Parameters:
identifier
- The url or the webfinger 'token'.- Returns:
- The found external Actor or
Optional.empty()
.
-
discoverPublicKey
The keyIdOfSignature regarding a HTTPSignature can reference different things, see: https://swicg.github.io/activitypub-http-signature/#how-to-obtain-a-signature-s-public-key This method helps you to solve this mess and try to get the public key.- Parameters:
keyIdOfSignature
-- Returns:
-