Package org.apache.wicket.security.hive.authentication

Examples of org.apache.wicket.security.hive.authentication.LoginContext


      private static final long serialVersionUID = 1L;

      @Override
      public boolean signIn(String username, String password)
      {
        LoginContext ctx = new Level0Context(username, password);
        try
        {
          ((WaspSession) getSession()).login(ctx);
        }
        catch (LoginException e)
View Full Code Here


      @Override
      public boolean signIn(final String username, final String password)
      {
        // authentication in swarm is handled by contexts, which are
        // disposed after use.
        LoginContext context = new MyLoginContext(username, password);
        try
        {
          ((WaspSession) getSession()).login(context);
        }
        catch (LoginException e)
View Full Code Here

      @Override
      public boolean signIn(final String username, final String password)
      {
        // authentication in swarm is handled by contexts, which are
        // disposed after use.
        LoginContext context = new MyLoginContext(username, password);
        try
        {
          ((WaspSession) getSession()).login(context);
        }
        catch (LoginException e)
View Full Code Here

      private static final long serialVersionUID = 1L;

      @Override
      public boolean signIn(String username, String password)
      {
        LoginContext ctx = new Level1Context(username, password);
        try
        {
          ((WaspSession) getSession()).login(ctx);
        }
        catch (LoginException e)
View Full Code Here

   */
  public boolean login(String username)
  {
    try
    {
      LoginContext context;

      context =
        new SpringSecureLoginContext(new TestingAuthenticationToken(username, username,
          getAuthorities(username, username)));
      ((WaspSession) Session.get()).login(context);
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

   */
  public boolean login(String username)
  {
    try
    {
      LoginContext context;
      if ("test".equals(username))
      {
        context = new PrimaryLoginContext();
      }
      else if ("all".equals(username))
View Full Code Here

   */
  public boolean login(String username)
  {
    try
    {
      LoginContext context = new SecondaryLoginContext();
      ((WaspSession) Session.get()).login(context);
      if (!continueToOriginalDestination())
        setResponsePage(Application.get().getHomePage());
      return true;
    }
View Full Code Here

TOP

Related Classes of org.apache.wicket.security.hive.authentication.LoginContext

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.