public static RequiredAuthType fromValue(String value) {
        if (value == null)
            return DEFAULT;

        RequiredAuthType constant = constants.get(value);
        if (constant == null) {
            throw new IllegalArgumentException(value);
        } else {
            return constant;
        }
    }
From string to enum

@param value the string
@return the enum
gateway/engine/core/src/main/java/io/apiman/gateway/engine/auth/RequiredAuthType.java