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

com.github.sitture.envconfig.EnvConfigVaultProperties Maven / Gradle / Ivy

Go to download

A simple utility to manage environment configs in Java-based projects by merging *.properties files with environment variables overrides.

There is a newer version: 1.13.1
Show newest version
package com.github.sitture.envconfig;

import java.util.Optional;

class EnvConfigVaultProperties {

    private final String address;
    private final String namespace;
    private final String token;
    private final String defaultPath;
    private final String secretPath;
    private final int validateTokenMaxRetries;

    EnvConfigVaultProperties(final String address, final String namespace, final String token, final String secretPath, final String defaultPath, final int validateTokenMaxRetries) {
        this.address = address;
        this.namespace = namespace;
        this.token = token;
        this.defaultPath = defaultPath;
        this.secretPath = secretPath;
        this.validateTokenMaxRetries = validateTokenMaxRetries;
    }

    String getAddress() {
        return address;
    }

    String getNamespace() {
        return namespace;
    }

    String getToken() {
        return token;
    }

    Optional getDefaultPath() {
        return Optional.ofNullable(defaultPath);
    }

    String getSecretPath() {
        return secretPath;
    }

    int getValidateTokenMaxRetries() {
        return validateTokenMaxRetries;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy