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

com.bcgdv.jwt.Environments Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
/**
 * Params
 */
package com.bcgdv.jwt;

import java.util.EnumSet;

/**
 * JWT Token Environments
 */
public enum Environments {

    /**
     * We support DEV
     */
    DEV("DEV"),

    /**
     * TEST
     */
    TEST("TEST"),

    /**
     * and PROD environments
     */
    PROD("PROD");

    /**
     * If it's not one of these it's not valid
     */
    public static final EnumSet valid = EnumSet.of(DEV, TEST, PROD);

    /**
     * Has a name
     */
    protected String name;

    /**
     * Build me like this
     * @param name with a name
     */
    Environments(String name) {
        this.name=name;
    }


    /**
     * Represent me as simple String.
     * @return as String
     */
    @Override
    public String toString() {
        return name();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy