Package org.zkoss.spring.security.ui.webapp

Examples of org.zkoss.spring.security.ui.webapp.ZkAuthenticationEntryPoint


* @see ZkExceptionTranslationListener
*/
public class ZkExceptionTranslationFilter extends ExceptionTranslationFilter {
  public ZkExceptionTranslationFilter() {
    super();
    setAuthenticationEntryPoint(new ZkAuthenticationEntryPoint());
    setAccessDeniedHandler(new ZkAccessDeniedHandler());
    //This is for secure ZK Ajax request.
    //Have to set to false to disallow redirect to saved Ajax request.
//    setCreateSessionAllowed(false);
  }
View Full Code Here


          = BeanDefinitionBuilder.rootBeanDefinition(ZkExceptionTranslationFilter.class);
        AccessDeniedHandler accessDeniedHandler = new ZkAccessDeniedHandler();
        builder.addPropertyValue("accessDeniedHandler", accessDeniedHandler);
       
        //zkAuthenticationEntryPoint
        ZkAuthenticationEntryPoint entryPoint = new ZkAuthenticationEntryPoint();
        String closeDelay = element.getAttribute(ATT_LOGIN_TEMPLATE_CLOSE_DELAY);
        if (StringUtils.hasText(closeDelay)) {
          int seconds = new Integer(closeDelay).intValue();
          entryPoint.setLoginOKDelay(seconds);
        }
        setEntryPointAttrs(entryPoint, element, pc);
        builder.addPropertyValue("authenticationEntryPoint", entryPoint);
       
        //zkExceptionTranslationFilter
View Full Code Here

TOP

Related Classes of org.zkoss.spring.security.ui.webapp.ZkAuthenticationEntryPoint

Copyright © 2018 www.massapicom. 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.