public void setScopes(final Set<String> scopes) {
        getScopes().clear();
        getScopes().addAll(scopes);
    }
Sets scopes.

@param scopes the scopes
support/cas-server-support-oauth-services/src/main/java/org/apereo/cas/support/oauth/services/OAuthRegisteredService.java