Examples of afterPropertiesSet()


Examples of org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter.afterPropertiesSet()

 
  @Bean
  public JwtTokenStore tokenStore() throws Exception {
    JwtAccessTokenConverter enhancer = new JwtAccessTokenConverter();
    // N.B. in a real system you would have to configure the verifierKey (or use JdbcTokenStore)
    enhancer.afterPropertiesSet();
    return new JwtTokenStore(enhancer);
  }

  public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
View Full Code Here

Examples of org.springframework.security.userdetails.jdbc.JdbcDaoImpl.afterPropertiesSet()

  }

  private JdbcDaoImpl makePopulatedJdbcDao() throws Exception {
    JdbcDaoImpl dao = new JdbcDaoImpl();
    dao.setDataSource( PopulatedDatabase.getDataSource() );
    dao.afterPropertiesSet();
    return dao;
  }

  /**
   * Logs in with given username.
View Full Code Here

Examples of org.springframework.security.userdetails.memory.InMemoryDaoImpl.afterPropertiesSet()

    dao = new InMemoryUserRoleListService();
    dao.setUserRoleListEnhancedUserMap( makeUserRoleListEnhancedUserMap() );
    dao.setAllRoles( makeAllAuthorities() );
    InMemoryDaoImpl wrapped = new InMemoryDaoImpl();
    wrapped.setUserMap( makeUserMap() );
    wrapped.afterPropertiesSet();
    dao.setUserDetailsService( wrapped );
    dao.afterPropertiesSet();
  }

  protected List<String> makeAllAuthorities() {
View Full Code Here

Examples of org.springframework.security.web.FilterChainProxy.afterPropertiesSet()

        }
        FilterChainProxy filterChainProxy = new FilterChainProxy(securityFilterChains);
        if(httpFirewall != null) {
            filterChainProxy.setFirewall(httpFirewall);
        }
        filterChainProxy.afterPropertiesSet();

        Filter result = filterChainProxy;
        if(debugEnabled) {
            logger.warn("\n\n" +
                    "********************************************************************\n" +
View Full Code Here

Examples of org.springframework.security.web.access.ExceptionTranslationFilter.afterPropertiesSet()

                LOGGER.warning("Cannot find: "+ authConfig.getAccessDeniedErrorPage());
        }
           
        filter.setAccessDeniedHandler(accessDeniedHandler);
       
        filter.afterPropertiesSet();
        getNestedFilters().add(filter);       
    }
   
}
View Full Code Here

Examples of org.springframework.security.web.access.channel.ChannelDecisionManagerImpl.afterPropertiesSet()

    public void testCannotSetEmptyChannelProcessorsList() throws Exception {
        ChannelDecisionManagerImpl cdm = new ChannelDecisionManagerImpl();

        try {
            cdm.setChannelProcessors(new Vector());
            cdm.afterPropertiesSet();
            fail("Should have thrown IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
            assertEquals("A list of ChannelProcessors is required", expected.getMessage());
        }
    }
View Full Code Here

Examples of org.springframework.security.web.access.channel.InsecureChannelProcessor.afterPropertiesSet()

        assertTrue(fi.getResponse().isCommitted());
    }

    public void testDecideRejectsNulls() throws Exception {
        InsecureChannelProcessor processor = new InsecureChannelProcessor();
        processor.afterPropertiesSet();

        try {
            processor.decide(null, null);
            fail("Should have thrown IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
View Full Code Here

Examples of org.springframework.security.web.access.channel.SecureChannelProcessor.afterPropertiesSet()

        assertTrue(fi.getResponse().isCommitted());
    }

    public void testDecideRejectsNulls() throws Exception {
        SecureChannelProcessor processor = new SecureChannelProcessor();
        processor.afterPropertiesSet();

        try {
            processor.decide(null, null);
            fail("Should have thrown IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
View Full Code Here

Examples of org.springframework.security.web.access.intercept.FilterSecurityInterceptor.afterPropertiesSet()

        interceptor.setAccessDecisionManager( accessDecisionManager );
        interceptor.setAlwaysReauthenticate( false );
        interceptor.setAuthenticationManager( manager );
        interceptor.setSecurityMetadataSource(source);
        interceptor.setValidateConfigAttributes( true );
        interceptor.afterPropertiesSet();
        return new HttpServletRequestFilterWrapper( interceptor );
    }

    static LinkedHashMap<RequestMatcher, Collection<ConfigAttribute>> convertCollectionToLinkedHashMap(
            Collection<RequestInvocationDefinition> urls ) {
View Full Code Here

Examples of org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter.afterPropertiesSet()

        filter.setAuthenticationSuccessHandler( successHandler);
    filter.setFilterProcessesUrl(targetUrl);
        filter.setFilterProcessesUrl( authUrl );
        filter.setRememberMeServices( rememberMeServices );           

        filter.afterPropertiesSet();
        return filter;
    }

    @Marker( SpringSecurityServices.class )
    public static HttpServletRequestFilter buildAuthenticationProcessingFilter(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.