Package com.gitblit.manager

Examples of com.gitblit.manager.IAuthenticationManager


      return auth;
    }

    @Test
    public void testAuthenticate() throws Exception {
      IAuthenticationManager auth = newAuthenticationManager();

      UserModel user = new UserModel("sunnyjim");
    user.password = "password";
    users.updateUserModel(user);

    assertNotNull(auth.authenticate(user.username, user.password.toCharArray()));
    user.disabled = true;

    users.updateUserModel(user);
    assertNull(auth.authenticate(user.username, user.password.toCharArray()));
    users.deleteUserModel(user);
    }
View Full Code Here


      return auth;
    }

    @Test
    public void testAuthenticate() throws Exception {
      IAuthenticationManager auth = newAuthenticationManager();

      UserModel user = new UserModel("sunnyjim");
    user.password = "password";
    users.updateUserModel(user);

    assertNotNull(auth.authenticate(user.username, user.password.toCharArray()));
    user.disabled = true;

    users.updateUserModel(user);
    assertNull(auth.authenticate(user.username, user.password.toCharArray()));
    users.deleteUserModel(user);
    }
View Full Code Here

TOP

Related Classes of com.gitblit.manager.IAuthenticationManager

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.