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

com.labs64.netlicensing.domain.vo.LicenseeSecretMode Maven / Gradle / Ivy

There is a newer version: 2.10.0-jdk17
Show newest version
package com.labs64.netlicensing.domain.vo;

public enum LicenseeSecretMode {

    DISABLED("DISABLED"),

    PREDEFINED("PREDEFINED"),

    CLIENT("CLIENT");

    private final String value;

    /**
     * Instantiates a new Licensee Secret Mode.
     *
     * @param licenseeSecretModeValue
     *            LicenseeSecretMode value
     */
    LicenseeSecretMode(final String licenseeSecretModeValue) {
        value = licenseeSecretModeValue;
    }

    public static LicenseeSecretMode parseString(final String value) {
        for (final LicenseeSecretMode licenseeSecretMode : LicenseeSecretMode.values()) {
            if (licenseeSecretMode.name().equalsIgnoreCase(value)) {
                return licenseeSecretMode;
            }
        }
        return LicenseeSecretMode.DISABLED;
    }

    /*
     * (non-Javadoc)
     *
     * @see java.lang.Enum#toString()
     */
    @Override
    public String toString() {
        return value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy