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

ai.databand.schema.auth.CreateTokenReq Maven / Gradle / Ivy

There is a newer version: 1.0.28.1
Show newest version
/*
 * © Copyright Databand.ai, an IBM Company 2022
 */

package ai.databand.schema.auth;

import java.util.UUID;

public class CreateTokenReq {

    private final String label;
    private final String lifespan;

    public CreateTokenReq() {
        this(UUID.randomUUID().toString(), "3600");
    }

    public CreateTokenReq(String label, String lifespan) {
        this.label = label;
        this.lifespan = lifespan;
    }

    public String getLabel() {
        return label;
    }

    public String getLifespan() {
        return lifespan;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy