Class SecretRetriever

java.lang.Object
com.github.cafapi.common.decoders.js.SecretRetriever

public class SecretRetriever extends Object
Provides access to secrets requested during decoding.
  • Constructor Details

    • SecretRetriever

      public SecretRetriever()
  • Method Details

    • getSecret

      public static String getSecret(String key) throws IOException
      Gets the value to use for the specified secret.
      Parameters:
      key - Name of secret.
      Returns:
      Value of secret specified.
      Throws:
      IOException - If there is an error reading the file when using the _FILE variant
      NullPointerException - If the key parameter is null