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

io.quarkus.vault.runtime.VaultDynamicDatabaseCredentials Maven / Gradle / Ivy

There is a newer version: 3.0.0.Beta1
Show newest version
package io.quarkus.vault.runtime;

import static io.quarkus.vault.runtime.LogConfidentialityLevel.LOW;
import static io.quarkus.vault.runtime.LogConfidentialityLevel.MEDIUM;

public class VaultDynamicDatabaseCredentials extends LeaseBase {

    public String username;
    public String password;

    public VaultDynamicDatabaseCredentials(LeaseBase lease, String username, String password) {
        super(lease);
        this.username = username;
        this.password = password;
    }

    public String getConfidentialInfo(LogConfidentialityLevel level) {
        return "{" + super.getConfidentialInfo(level) + ", username: " + level.maskWithTolerance(username, MEDIUM)
                + ", password:"
                + level.maskWithTolerance(password, LOW) + "}";
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy