Package org.wicketstuff.shiro.authz

Examples of org.wicketstuff.shiro.authz.ShiroUnauthorizedComponentListener


   
    // Configure Shiro
    AnnotationsShiroAuthorizationStrategy authz = new AnnotationsShiroAuthorizationStrategy();
    getSecuritySettings().setAuthorizationStrategy(authz);
    getSecuritySettings().setUnauthorizedComponentInstantiationListener(
      new ShiroUnauthorizedComponentListener(LoginPage.class, UnauthorizedPage.class, authz));

    mountPage("account/login", LoginPage.class);
    mountPage("account/logout", LogoutPage.class);
    mountPage("admin", RequireAdminRolePage.class);
    mountPage("view", RequireViewPermissionPage.class);
View Full Code Here


    // Configure Shiro
    AnnotationsShiroAuthorizationStrategy authz = new AnnotationsShiroAuthorizationStrategy();
    getSecuritySettings().setAuthorizationStrategy(authz);
    getSecuritySettings().setUnauthorizedComponentInstantiationListener(
      new ShiroUnauthorizedComponentListener(LoginPage.class, UnauthorizedPage.class, authz));

    mountPage("account/login", LoginPage.class);
    mountPage("account/logout", LogoutPage.class);
    mountPage("admin", RequireAdminRolePage.class);
    mountPage("view", RequireViewPermissionPage.class);
View Full Code Here

TOP

Related Classes of org.wicketstuff.shiro.authz.ShiroUnauthorizedComponentListener

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.