Examples of LoginModule


Examples of com.changestuffs.scrum.client.application.widget.login.LoginModule

public class WidgetModule extends AbstractPresenterModule {
    @Override
    protected void configure() {
        install(new HeaderModule());
        install(new LoginModule());
    }
View Full Code Here

Examples of com.gwtplatform.carstore.client.application.login.LoginModule

public class ApplicationDesktopModule extends AbstractPresenterModule {
    @Override
    protected void configure() {
        install(new UnauthorizedModule());
        install(new LoginModule());
        install(new ManufacturerModule());
        install(new CarsDesktopModule());
        install(new RatingModule());
        install(new WidgetModule());
        install(new MessagesModule());
View Full Code Here

Examples of iqq.im.module.LoginModule

  public WebQQClient(String username, String password,
      QQNotifyListener notifyListener, QQActorDispatcher actorDispatcher) {
    this.modules = new HashMap<QQModule.Type, QQModule>();
    this.services = new HashMap<QQService.Type, QQService>();

    this.modules.put(QQModule.Type.LOGIN, new LoginModule());
    this.modules.put(QQModule.Type.PROC, new ProcModule());
    this.modules.put(QQModule.Type.USER, new UserModule());
    this.modules.put(QQModule.Type.BUDDY, new BuddyModule());
    this.modules.put(QQModule.Type.CATEGORY, new CategoryModule());
    this.modules.put(QQModule.Type.GROUP, new GroupModule());
View Full Code Here

Examples of iqq.im.module.LoginModule

   * <p>getCaptcha.</p>
   *
   * @param listener a {@link iqq.im.QQActionListener} object.
   */
  public void getCaptcha(QQActionListener listener) {
    LoginModule loginModule = (LoginModule) getModule(QQModule.Type.LOGIN);
    loginModule.getCaptcha(getAccount().getUin(), listener);
  }
View Full Code Here

Examples of iqq.im.module.LoginModule

   *
   * 刷新验证码
   */
  @Override
  public QQActionFuture freshVerify(QQNotifyEvent verifyEvent, QQActionListener listener) {
    LoginModule mod = getModule(QQModule.Type.LOGIN);
    return mod.getCaptcha(account.getUin(), listener);
  }
View Full Code Here

Examples of javax.security.auth.spi.LoginModule

 
  private Set<Principal> getPrincipals(String userName,
                                       String password)
  {
    try {
      LoginModule login = (LoginModule) _loginModuleClass.newInstance();
      Subject subject = new Subject();

      HashMap<String,String> state = new HashMap<String,String>();

      state.put("javax.security.auth.login.name", userName);
      state.put("javax.security.auth.login.password", password);

      login.initialize(subject,
                       new Handler(userName, password),
                       state, _options);

      try {
        login.login();
      } catch (Exception e) {
        login.abort();
      }

      login.commit();

      Set<Principal> principals = subject.getPrincipals();

      return principals;
    } catch (LoginException e) {
View Full Code Here

Examples of javax.security.auth.spi.LoginModule

    }

    private String actionTestLoginModuleLoad(PortletRequest request, RealmData data) {
        Map options = new HashMap();
        try {
            LoginModule module = loadModule(request, data, options);
            log.warn("Testing with options " + options);
            try {
                PortletManager.testLoginModule(request, module, options);
                return null;
            } catch (Exception e) {
View Full Code Here

Examples of javax.security.auth.spi.LoginModule

            } catch (MalformedURLException e) {
                log.warn("Repository unable to look up JAR file", e);
            }
        }
        Class cls = loader.loadClass(getSelectedModule(data).getClassName());
        LoginModule module = (LoginModule) cls.newInstance();
        for (Iterator it = data.getOptions().keySet().iterator(); it.hasNext();) {
            String key = (String) it.next();
            final Object value = data.getOptions().get(key);
            if (value != null && !value.equals("")) {
                options.put(key, value);
View Full Code Here

Examples of javax.security.auth.spi.LoginModule

    private void actionAttemptLogin(RealmData data, PortletRequest request, PortletSession session, String username, String password) {
        session.removeAttribute("TestLoginPrincipals");
        session.removeAttribute("TestLoginError");
        Map options = new HashMap();
        try {
            LoginModule module = loadModule(request, data, options);
            Subject sub = PortletManager.testLoginModule(request, module, options, username, password);
            session.setAttribute("TestLoginPrincipals", sub.getPrincipals());
        } catch (Exception e) {
            log.warn("Test login failed", e);
            session.setAttribute("TestLoginError", "Login Failed: " + (e.getMessage() == null ? "no message" : e.getMessage()));
View Full Code Here

Examples of javax.security.auth.spi.LoginModule

            } catch (MalformedURLException e) {
                log.warn("Repository unable to look up JAR file", e);
            }
        }
        Class cls = loader.loadClass(getSelectedModule(data).getClassName());
        LoginModule module = (LoginModule) cls.newInstance();
        for (Iterator it = data.getOptions().keySet().iterator(); it.hasNext();) {
            String key = (String) it.next();
            final Object value = data.getOptions().get(key);
            if (value != null && !value.equals("")) {
                options.put(key, value);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.