Class DiscoverExternalActorDefault
java.lang.Object
org.linkedopenactors.rdfpub.adapter.http.DiscoverExternalActorDefault
- All Implemented Interfaces:
DiscoverExternalActor
-
Constructor Summary
ConstructorDescriptionDiscoverExternalActorDefault
(ActivityPubObjectFactory activityPubObjectFactory, org.springframework.web.reactive.function.client.WebClient webClient) -
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.
-
Constructor Details
-
DiscoverExternalActorDefault
public DiscoverExternalActorDefault(ActivityPubObjectFactory activityPubObjectFactory, org.springframework.web.reactive.function.client.WebClient webClient)
-
-
Method Details
-
discover
Description copied from interface:DiscoverExternalActor
Try to find an external Actor by the passed identifier.- Specified by:
discover
in interfaceDiscoverExternalActor
- Parameters:
identifier
- The url or the webfinger 'token'.- Returns:
- The found external Actor or
Optional.empty()
.
-
discoverPublicKey
Description copied from interface:DiscoverExternalActor
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.- Specified by:
discoverPublicKey
in interfaceDiscoverExternalActor
- Parameters:
keyIdOfSignature
-- Returns:
-