io.quarkus.vault.runtime.LeaseBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-vault Show documentation
Show all versions of quarkus-vault Show documentation
Store your credentials securely in HashiCorp Vault
package io.quarkus.vault.runtime;
import static io.quarkus.vault.runtime.LogConfidentialityLevel.MEDIUM;
public class LeaseBase extends TimeLimitedBase {
public String leaseId;
public LeaseBase(String leaseId, boolean renewable, long leaseDurationSecs) {
super(renewable, leaseDurationSecs);
this.leaseId = leaseId;
}
public LeaseBase(LeaseBase other) {
super(other);
this.leaseId = other.leaseId;
}
public String getConfidentialInfo(LogConfidentialityLevel level) {
return "leaseId: " + level.maskWithTolerance(leaseId, MEDIUM) + ", " + super.info();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy