/** * The pre-defined Stormpath access control settings are defined here. * * @param http * the {@link HttpSecurity} to be modified * @throws Exception * if an error occurs */ @Override public void init(HttpSecurity http) throws Exception { // autowire this bean ApplicationContext context = http.getSharedObject(ApplicationContext.class); context.getAutowireCapableBeanFactory().autowireBean(this); if (stormpathEnabled && (stormpathSpringSecurityAutoload || manuallyConfigured)) { /// we only need the configurer Stormpath is enabled stormpathSecurityConfigurerAdapter.init(http); } }
/** * The pre-defined Stormpath access control settings are defined here. * * @param http * the {@link HttpSecurity} to be modified * @throws Exception * if an error occurs */ @Override public void init(HttpSecurity http) throws Exception { // autowire this bean ApplicationContext context = http.getSharedObject(ApplicationContext.class); context.getAutowireCapableBeanFactory().autowireBean(this); if (stormpathEnabled && (stormpathSpringSecurityAutoload || manuallyConfigured)) { /// we only need the configurer Stormpath is enabled stormpathSecurityConfigurerAdapter.init(http); } }