public void validateRedirectUri(final String redirectUri) {
        if (StringUtils.isNotBlank(redirectUri)) {
            RedirectURIValidator.ensureLegal(URI.create(redirectUri));
        }
    }
Validate redirect uri.

@param redirectUri the redirect uri
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/util/OAuth20Utils.java