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

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