com.fluxtion.server.plugin.jdbc.impl.JdbcConnectionConfig Maven / Gradle / Ivy
/*
* SPDX-FileCopyrightText: © 2024 Gregory Higgins
* SPDX-License-Identifier: AGPL-3.0-only
*/
package com.fluxtion.server.plugin.jdbc.impl;
import lombok.Data;
import lombok.ToString;
@Data
public class JdbcConnectionConfig {
private String url;
private String username;
@ToString.Exclude
private String password;
public String getUsername() {
if (username != null && username.startsWith("$ENV.")) {
return System.getProperty(username);
}
return username;
}
public String getPassword() {
if (password != null && password.startsWith("$ENV.")) {
return System.getProperty(password);
}
return password;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy