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

io.quarkus.vault.runtime.VaultToken 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;

public class VaultToken extends TimeLimitedBase {

    public String clientToken;

    public VaultToken(String clientToken, boolean renewable, long leaseDurationSecs) {
        super(renewable, leaseDurationSecs);
        this.clientToken = clientToken;
    }

    public String getConfidentialInfo(LogConfidentialityLevel level) {
        return "{clientToken: " + level.maskWithTolerance(clientToken, LOW) + ", " + super.info() + "}";
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy