@Test public void canDecryptValues() throws IOException { AtlasDbConfig config = AtlasDbConfigs.load( new File(AtlasDbConfigsTest.class.getResource("/encrypted-config.yml").getPath()), AtlasDbConfig.class); KeyValueServiceConfig kvsConfig = config.keyValueService(); assertThat(kvsConfig).isInstanceOf(InMemoryAtlasDbConfig.class); }
public static <T> T load(File configFile, Class<T> clazz) throws IOException { return load(configFile, ATLASDB_CONFIG_OBJECT_PATH, clazz); }
AtlasDbConfigs { public static <T> T load(File configFile, Class<T> clazz) throws IOException { return load(configFile, ATLASDB_CONFIG_OBJECT_PATH, clazz); } }
AtlasDbConfigs { public static <T> T load(File configFile, Class<T> clazz) throws IOException { return load(configFile, ATLASDB_CONFIG_OBJECT_PATH, clazz); } private  AtlasDbConfigs(); }
AtlasDbConfigs { public static <T> T load(File configFile, Class<T> clazz) throws IOException { return load(configFile, ATLASDB_CONFIG_OBJECT_PATH, clazz); } private  AtlasDbConfigs(); static T load(File configFile, Class<T> clazz); static T load(InputStream configStream, Class<T> clazz); static T load(File configFile, @Nullable String configRoot, Class<T> clazz); static T loadFromString(String fileContents, @Nullable String configRoot, Class<T> clazz); static T loadFromStream(InputStream configStream, @Nullable String configRoot, Class<T> clazz); static AtlasDbConfig addFallbackSslConfigurationToAtlasDbConfig(
            AtlasDbConfig config,
            Optional<SslConfiguration> sslConfiguration); }
AtlasDbConfigs { public static <T> T load(File configFile, Class<T> clazz) throws IOException { return load(configFile, ATLASDB_CONFIG_OBJECT_PATH, clazz); } private  AtlasDbConfigs(); static T load(File configFile, Class<T> clazz); static T load(InputStream configStream, Class<T> clazz); static T load(File configFile, @Nullable String configRoot, Class<T> clazz); static T loadFromString(String fileContents, @Nullable String configRoot, Class<T> clazz); static T loadFromStream(InputStream configStream, @Nullable String configRoot, Class<T> clazz); static AtlasDbConfig addFallbackSslConfigurationToAtlasDbConfig(
            AtlasDbConfig config,
            Optional<SslConfiguration> sslConfiguration); static final String ATLASDB_CONFIG_OBJECT_PATH; static final ObjectMapper OBJECT_MAPPER; }