Examples of afterPropertiesSet()


Examples of org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationProvider.afterPropertiesSet()

    @Test(expected = IllegalArgumentException.class)
    public final void afterPropertiesSet() {
        PreAuthenticatedAuthenticationProvider provider = new PreAuthenticatedAuthenticationProvider();

        provider.afterPropertiesSet();
    }

    @Test
    public final void authenticateInvalidToken() throws Exception {
        UserDetails ud = new User("dummyUser", "dummyPwd", true, true, true, true, AuthorityUtils.NO_AUTHORITIES );
View Full Code Here

Examples of org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices.afterPropertiesSet()

                    .setTokenValiditySeconds(tokenValiditySeconds);
        }
        if (useSecureCookie != null) {
            tokenRememberMeServices.setUseSecureCookie(useSecureCookie);
        }
        tokenRememberMeServices.afterPropertiesSet();
        logoutHandler = tokenRememberMeServices;
        rememberMeServices = tokenRememberMeServices;
        return tokenRememberMeServices;
    }
View Full Code Here

Examples of org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint.afterPropertiesSet()

    public void testDetectsMissingRealmName() throws Exception {
        BasicAuthenticationEntryPoint ep = new BasicAuthenticationEntryPoint();

        try {
            ep.afterPropertiesSet();
            fail("Should have thrown IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
            assertEquals("realmName must be specified", expected.getMessage());
        }
    }
View Full Code Here

Examples of org.springframework.security.web.authentication.www.BasicAuthenticationFilter.afterPropertiesSet()

//        if (authConfig.isUseRememberMe()) {
//            filter.setRememberMeServices(securityManager.getRememberMeService());
//            GeoServerWebAuthenticationDetailsSource s = new GeoServerWebAuthenticationDetailsSource();
//            filter.setAuthenticationDetailsSource(s);
//        }
        filter.afterPropertiesSet();
        getNestedFilters().add(filter);
    }

    @Override
    public AuthenticationEntryPoint getAuthenticationEntryPoint() {
View Full Code Here

Examples of org.springframework.security.web.authentication.www.DigestAuthenticationFilter.afterPropertiesSet()

                new HttpDigestUserDetailsServiceWrapper(
                        getSecurityManager().loadUserGroupService(authConfig.getUserGroupServiceName()),
                        Charset.defaultCharset());
        filter.setUserDetailsService(wrapper);
       
        filter.afterPropertiesSet();
        getNestedFilters().add(filter);       
    }

    @Override
    public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
View Full Code Here

Examples of org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.afterPropertiesSet()

    @Marker( SpringSecurityServices.class )
    public static HttpServletRequestFilter buildSecurityContextHolderAwareRequestFilter() {
      SecurityContextHolderAwareRequestFilter scharf = new SecurityContextHolderAwareRequestFilter();
      try {
      scharf.afterPropertiesSet();
    } catch (ServletException e) {
      throw new TapestryException("Could not initialize SecurityContextHolderAwareRequestFilter",e);
    }
        return new HttpServletRequestFilterWrapper(scharf);
    }
View Full Code Here

Examples of org.springframework.security.web.session.ConcurrentSessionFilter.afterPropertiesSet()

    }

    @Test(expected=IllegalArgumentException.class)
    public void detectsMissingSessionRegistry() throws Exception {
        ConcurrentSessionFilter filter = new ConcurrentSessionFilter();
        filter.afterPropertiesSet();
    }

    @Test(expected=IllegalArgumentException.class)
    public void detectsInvalidUrl() throws Exception {
        ConcurrentSessionFilter filter = new ConcurrentSessionFilter();
View Full Code Here

Examples of org.springframework.transaction.interceptor.TransactionInterceptor.afterPropertiesSet()

    transactionAttributeSource.setRepositoryInformation(repositoryInformation);

    TransactionInterceptor transactionInterceptor = new TransactionInterceptor(null, transactionAttributeSource);
    transactionInterceptor.setTransactionManagerBeanName(transactionManagerName);
    transactionInterceptor.setBeanFactory(beanFactory);
    transactionInterceptor.afterPropertiesSet();

    factory.addAdvice(transactionInterceptor);
  }

  // The section below contains copies of two core Spring classes that slightly modify the algorithm transaction
View Full Code Here

Examples of org.springframework.transaction.interceptor.TransactionProxyFactoryBean.afterPropertiesSet()

        Properties txProps = new Properties();
        txProps.setProperty("*", "PROPAGATION_REQUIRED");
        txfb.setTransactionAttributes(txProps);
        txfb.setTarget(object);
        txfb.setProxyInterfaces(ifaces);
        txfb.afterPropertiesSet();
        return txfb.getObject();
    }

}
View Full Code Here

Examples of org.springframework.transaction.jta.JtaTransactionManager.afterPropertiesSet()

    JtaTransactionManager jtam = new JtaTransactionManager();
    jtam.setUserTransaction(ut);
    jtam.setTransactionManager(tm);
    jtam.setRollbackOnCommitFailure(true);
    jtam.afterPropertiesSet();

    SimpleNamingContextBuilder jndiEnv = SimpleNamingContextBuilder.emptyActivatedContextBuilder();
    jndiEnv.bind(JtaTransactionManager.DEFAULT_USER_TRANSACTION_NAME, ut2);
    JtaTransactionManager serializedJtatm =
        (JtaTransactionManager) SerializationTestUtils.serializeAndDeserialize(jtam);
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.