@Test public void resolve_FileBase64() throws Exception { String input = getPath("secret.json").toAbsolutePath().toString(); String output = resolve("${base64:${readFile:" + input + "}}"); String decoded = DECODE.lookup(output); String content = FILE.lookup(input); assertThat(output, equalTo(ENCODE.lookup(content))); assertThat(decoded, equalTo(content)); assertThat(decoded, containsString("\"Our secret\": \"Hello World\"")); }
@Deprecated @Restricted(DoNotUse.class) public static String resolve(ConfigurationContext context, String toInterpolate) { return context.getSecretSourceResolver().resolve(toInterpolate); }
SecretSourceResolver { @Deprecated @Restricted(DoNotUse.class) public static String resolve(ConfigurationContext context, String toInterpolate) { return context.getSecretSourceResolver().resolve(toInterpolate); } }
SecretSourceResolver { @Deprecated @Restricted(DoNotUse.class) public static String resolve(ConfigurationContext context, String toInterpolate) { return context.getSecretSourceResolver().resolve(toInterpolate); } SecretSourceResolver(ConfigurationContext configurationContext); }
SecretSourceResolver { @Deprecated @Restricted(DoNotUse.class) public static String resolve(ConfigurationContext context, String toInterpolate) { return context.getSecretSourceResolver().resolve(toInterpolate); } SecretSourceResolver(ConfigurationContext configurationContext); String encode(@CheckForNull String toEncode); @Deprecated @Restricted(DoNotUse.class) static String resolve(ConfigurationContext context, String toInterpolate); String resolve(String toInterpolate); }
SecretSourceResolver { @Deprecated @Restricted(DoNotUse.class) public static String resolve(ConfigurationContext context, String toInterpolate) { return context.getSecretSourceResolver().resolve(toInterpolate); } SecretSourceResolver(ConfigurationContext configurationContext); String encode(@CheckForNull String toEncode); @Deprecated @Restricted(DoNotUse.class) static String resolve(ConfigurationContext context, String toInterpolate); String resolve(String toInterpolate);  }