public static Set < String > parseRequestScopes ( final HttpServletRequest context ) { val parameterValues = context . getParameter ( OAuth20Constants . SCOPE ) ; if ( StringUtils . isBlank ( parameterValues ) ) { return new HashSet <> ( 0 ) ; } return CollectionUtils . wrapSet ( parameterValues . split ( " " ) ) ; }
Parse request scopes set .