Interface SecretResolver

All Known Implementing Classes:
DefaultSecretResolver
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SecretResolver
An interface for loading the content of a file.
Author:
Vincent Nadoll
  • Method Details

    • loadContent

      Optional<String> loadContent(@Nullable String location)
      Loads the content from the given location.
      Parameters:
      location - location from which the content is loaded
      Returns:
      secret
    • loadContent

      default Optional<String> loadContent(@Nullable URI location)
      Loads the content from the given URI.
      Parameters:
      location - location from which the content is loaded
      Returns:
      secret