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

fm.pattern.tokamak.sdk.JwtClientProperties Maven / Gradle / Ivy

The newest version!
package fm.pattern.tokamak.sdk;

import java.util.Properties;

import org.apache.commons.lang3.StringUtils;

public class JwtClientProperties {

    private static final Properties properties = new Properties();

    static {
        try {
            properties.load(JwtClientProperties.class.getClassLoader().getResourceAsStream("jwt-client.properties"));
        }
        catch (Exception e) {

        }
    }

    private JwtClientProperties() {

    }

    public static boolean hasEndpoint() {
        return StringUtils.isNotBlank(getEndpoint());
    }

    public static void setEndpoint(String endpoint) {
        properties.setProperty("endpoint", endpoint);
    }

    public static String getEndpoint() {
        return properties.getProperty("endpoint");
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy