Class DiscoverExternalActorDefault

java.lang.Object
org.linkedopenactors.rdfpub.adapter.http.DiscoverExternalActorDefault
All Implemented Interfaces:
DiscoverExternalActor

@Service public class DiscoverExternalActorDefault extends Object implements DiscoverExternalActor
  • Constructor Details

    • DiscoverExternalActorDefault

      public DiscoverExternalActorDefault(ActivityPubObjectFactory activityPubObjectFactory, org.springframework.web.reactive.function.client.WebClient webClient)
  • Method Details

    • discover

      public Optional<Actor> discover(String identifier)
      Description copied from interface: DiscoverExternalActor
      Try to find an external Actor by the passed identifier.
      Specified by:
      discover in interface DiscoverExternalActor
      Parameters:
      identifier - The url or the webfinger 'token'.
      Returns:
      The found external Actor or Optional.empty().
    • discoverPublicKey

      public Optional<PublicKey> discoverPublicKey(String keyIdOfSignature)
      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 interface DiscoverExternalActor
      Parameters:
      keyIdOfSignature -
      Returns: