Package org.apache.wicket.security.examples.springsecurity.security

Examples of org.apache.wicket.security.examples.springsecurity.security.SpringSecureLoginContext


  /**
   * Convenience method to logout of the application.
   */
  protected void logoutOfApp()
  {
    assertTrue(((WaspSession) mock.getWicketSession()).logoff(new SpringSecureLoginContext()));
    mock.startPage(HomePage.class);
    mock.assertRenderedPage(HomePage.class);
    mock.processRequestCycle();
  }
View Full Code Here


        UsernamePasswordAuthenticationToken authRequest =
          new UsernamePasswordAuthenticationToken(username, password
            .getDefaultModelObjectAsString());

        LoginContext context = new SpringSecureLoginContext(authRequest);
        try
        {
          ((WaspSession) getSession()).login(context);
          // TODO get the page originally requested
          setResponsePage(getApplication().getHomePage());
View Full Code Here

TOP

Related Classes of org.apache.wicket.security.examples.springsecurity.security.SpringSecureLoginContext

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.