@SuppressWarnings("nls")
    protected OAuth2FlowType getFlowType(String flowAsString) {
        switch(flowAsString.toUpperCase()) {
        case "AUTH_CODE":
        case "AUTHCODE":
            return OAuth2FlowType.AUTH_CODE;
        case "CLIENT":
            return OAuth2FlowType.CLIENT;
        case "PASSWORD":
            return OAuth2FlowType.PASSWORD;
        }
        throw new OAuth2Exception("Unrecognised OAuth2FlowType " + flowAsString);
    }
Common OAuth2 base.

@author Marc Savy {@literal <marc@rhymewithgravy.com>}
gateway/engine/vertx-polling/src/main/java/io/apiman/gateway/engine/vertx/polling/fetchers/auth/AbstractOAuth2Base.java