Class DefaultSecretResolver

java.lang.Object
de.vinado.boot.secrets.DefaultSecretResolver
All Implemented Interfaces:
SecretResolver

public class DefaultSecretResolver extends Object implements SecretResolver
The default resolver implementation for loading the content of a Resource.
Author:
Vincent Nadoll
  • Constructor Details

    • DefaultSecretResolver

      public DefaultSecretResolver()
  • Method Details

    • loadContent

      public Optional<String> loadContent(@Nullable String location)
      Substitutes the given location and loads its secret afterwards.
      Specified by:
      loadContent in interface SecretResolver
      Parameters:
      location - location from which the content is loaded
      Returns:
      secret