server/src/main/java/com/github/whitepin/server/config/security/HttpMethodResourceAntMatchers.java
/**
     * Applies all existing Matchers to the providd httpSecurity object as .authorizeRequest().antMatchers().hasAnyRole()
     * @param httpSecurity
     * @throws Exception
     */
Applies all existing Matchers to the providd httpSecurity object as .authorizeRequest().antMatchers().hasAnyRole()
@param httpSecurity
@throws Exception
Applies all existing Matchers to the providd httpSecurity object as . authorizeRequest () . antMatchers () . hasAnyRole () @param httpSecurity @throws Exception
public void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity) throws Exception {
        for (HttpMethodResourceAntMatcher matcher : this.matcherList) {
            try {
                httpSecurity.authorizeRequests().antMatchers(matcher.getMethod(), matcher.getAntPattern()).hasAnyRole(matcher.getRoles());
            } catch (Exception e) {
                e.printStackTrace();
                logger.error("Could not antMatchers Matcher to httpSecurity. Matcher: " + matcher + ". Exception:" + e);
                throw e;
            }
        }
    }
public void configure ( org . springframework . security . config . annotation . web . builders . HttpSecurity httpSecurity ) throws Exception { for ( HttpMethodResourceAntMatcher matcher : this . matcherList ) { try { httpSecurity . authorizeRequests ( ) . antMatchers ( matcher . getMethod ( ) , matcher . getAntPattern ( ) ) . hasAnyRole ( matcher . getRoles ( ) ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; logger . error ( "Could not antMatchers Matcher to httpSecurity. Matcher: " + matcher + ". Exception:" + e ) ; throw e ; } } }
Applies all existing Matchers to the providd httpSecurity object as .authorizeRequest().antMatchers().hasAnyRole()
 @param httpSecurity
 @throws Exception
Applies all existing Matchers to the providd httpSecurity object as . authorizeRequest () . antMatchers () . hasAnyRole () @param httpSecurity @throws Exception