Examples of LoginCallback


Examples of org.buildndeploy.client.ui.panel.LoginPanel.LoginCallback

//    log.severe("module load");
   
    // Show the Login Panel
    LoginPanel l = new LoginPanel();
    l.center();
    l.setLoginCallback(new LoginCallback() {
     
      @Override
      public void onLogin(InitBundle b) {
        System.out.println(b.getChannelToken() + " on client");
        channel = new ClientChannel(b.getChannelToken());
View Full Code Here

Examples of org.eclipse.jetty.security.authentication.LoginCallback

            }
            else if (callback instanceof CredentialValidationCallback)
            {
                CredentialValidationCallback credentialValidationCallback = (CredentialValidationCallback) callback;
                Subject subject = credentialValidationCallback.getSubject();
                LoginCallback loginCallback = new LoginCallbackImpl(subject,
                        credentialValidationCallback.getUsername(),
                        credentialValidationCallback.getCredential());

                UserIdentity user = _loginService.login(credentialValidationCallback.getUsername(),credentialValidationCallback.getCredential());

                if (user!=null)
                {
                    loginCallback.setUserPrincipal(user.getUserPrincipal());
                    credentialValidationCallback.getSubject().getPrivateCredentials().add(loginCallback);
                    credentialValidationCallback.setResult(true);
                    credentialValidationCallback.getSubject().getPrincipals().addAll(user.getSubject().getPrincipals());
                    credentialValidationCallback.getSubject().getPrivateCredentials().add(user);
                }
View Full Code Here

Examples of org.jitterbit.integration.client.server.login.LoginCallback

     * @param externalCallback
     *            an optional <code>LoginCallback</code> that will be notified on the outcome of
     *            the login request
     */
    public void login(LoginCallback externalCallback) {
        final LoginCallback safeCallback = new SafeCallback(externalCallback);
        Runnable job = new Runnable() {

            @Override
            public void run() {
                loginImpl(safeCallback);
            }
        };
        UiUtils.runOnEventThreadAndWait(job, new ExceptionHandler<Throwable>() {

            @Override
            public void caught(Throwable th) {
                ErrorLog.log(LoginServiceUi.class, "An unexpected error occurred: " + th.getMessage(), th);
                safeCallback.caught(th);
            }
        });
    }
View Full Code Here

Examples of org.jitterbit.integration.client.server.login.LoginCallback

            // change that, e.g. by making LoginServiceUi an interface and pass it in through
            // dependency injection.
            serverManager.logOff();
            serverManager.getLoginService().setNextServerToLoginTo(server.getName());
            LoginServiceUi loginUi = new LoginServiceUi(serverManager);
            loginUi.login(new LoginCallback() {

                @Override
                public void caught(Throwable t) {
                    model.setBusy(false);
                }
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.