Interface DiscoverExternalActor


public interface DiscoverExternalActor
  • Method Summary

    Modifier and Type
    Method
    Description
    discover(String identifier)
    Try 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

      Optional<Actor> discover(String identifier)
      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

      Optional<PublicKey> 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.
      Parameters:
      keyIdOfSignature -
      Returns: