All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.descoped.secrets.secure.configuration.SafeConfigurationClientInitializer Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package io.descoped.secrets.secure.configuration;

import io.descoped.secrets.api.SecretManagerClient;
import io.descoped.secrets.api.SecretManagerClientInitializer;
import io.descoped.service.provider.api.ProviderName;

import java.util.Map;
import java.util.Set;

@ProviderName("safe-configuration")
public class SafeConfigurationClientInitializer implements SecretManagerClientInitializer {

    @Override
    public String providerId() {
        return "safe-configuration";
    }

    @Override
    public Set configurationKeys() {
        return Set.of("secrets.property-resource-path");
    }

    @Override
    public SecretManagerClient initialize(Map configuration) {
        String propertyResourcePath = configuration.get("secrets.property-resource-path");
        return new SafeConfigurationClient(propertyResourcePath);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy