public static OAuth20ClientAuthenticationMethods parse(final String type) {
        return Arrays.stream(OAuth20ClientAuthenticationMethods.values())
            .filter(method -> StringUtils.equalsIgnoreCase(method.getType(), type))
            .findFirst()
            .orElseThrow();
    }
Parse oauth20 client authentication methods.

@param type the type
@return the oauth20 client authentication methods
support/cas-server-support-oauth-api/src/main/java/org/apereo/cas/support/oauth/OAuth20ClientAuthenticationMethods.java