Examples of validCredentials()


Examples of com.taobao.eclipse.plugin.reviewboard.core.service.IReviewboardService.validCredentials()

                    reviewboardClient = rbClientRepository.getClient( false, serverUrl,
                            txtUserId.getText().trim(), txtPassword.getText().trim(), CHARACTER_ENCODING );
                }
                IReviewboardService reviewboardService = new ReviewboardServiceImpl( reviewboardClient );
                //验证用户名和密码是否正确
                boolean isSuccess = reviewboardService.validCredentials( txtUserId.getText().trim(), txtPassword.getText().trim(), null );
                if( !isSuccess ){
                    MessageDialog.openError( this.parent.getShell(),
                            RbCoreMessages.getString("ERROR_LABLE"),
                            RbCoreMessages.getString("ERROR_USERNAMEPASSWORD_1"));
                    return false;
View Full Code Here

Examples of com.taobao.eclipse.plugin.reviewboard.core.service.IReviewboardService.validCredentials()

            isClientDataNull = true;
        }
        //强制刷新RepositoryData
        if( isClientDataNull || refreshForce ){
            IReviewboardService reviewboardService = new ReviewboardServiceImpl( reviewboardClient );
            boolean loginSuccess = reviewboardService.validCredentials(rbConfig.getUserId(), rbConfig.getPassword(), null);
            if( loginSuccess ){
                reviewboardService.updateRepositoryData(true, monitor);
                this.urlToClientMap.put(rbConfig.getServer(), reviewboardClient);
            }
        }
View Full Code Here

Examples of com.taobao.eclipse.plugin.reviewboard.core.service.IReviewboardService.validCredentials()

            isClientDataNull = true;
        }
        //强制刷新RepositoryData
        if( isClientDataNull || refreshForce ){
            IReviewboardService reviewboardService = new ReviewboardServiceImpl( reviewboardClient );
            boolean loginSuccess = reviewboardService.validCredentials(userName, password, null);
            if( loginSuccess ){
                this.urlToClientMap.put(serverUrl, reviewboardClient);
                reviewboardService.updateRepositoryData(true, new NullProgressMonitor());
            }
        }
View Full Code Here

Examples of com.taobao.eclipse.plugin.reviewboard.core.service.IReviewboardService.validCredentials()

            if( null == rbConfig || null == rbConfig.getServer()){
                return ;
            }
            //强制刷新RepositoryData
            IReviewboardService reviewboardService = new ReviewboardServiceImpl( reviewboardClient );
            boolean loginSuccess = reviewboardService.validCredentials(rbConfig.getUserId(), rbConfig.getPassword(), null);
            if( loginSuccess ){
                reviewboardService.updateRepositoryData(true, new NullProgressMonitor());
            }
        } catch (Exception e) {
        }
View Full Code Here

Examples of com.taobao.eclipse.plugin.reviewboard.core.service.impl.ReviewboardServiceImpl.validCredentials()

                    reviewboardClient = rbClientRepository.getClient( false, serverUrl,
                            txtUserId.getText().trim(), txtPassword.getText().trim(), CHARACTER_ENCODING );
                }
                IReviewboardService reviewboardService = new ReviewboardServiceImpl( reviewboardClient );
                //验证用户名和密码是否正确
                boolean isSuccess = reviewboardService.validCredentials( txtUserId.getText().trim(), txtPassword.getText().trim(), null );
                if( !isSuccess ){
                    MessageDialog.openError( this.parent.getShell(),
                            RbCoreMessages.getString("ERROR_LABLE"),
                            RbCoreMessages.getString("ERROR_USERNAMEPASSWORD_1"));
                    return false;
View Full Code Here

Examples of com.taobao.eclipse.plugin.reviewboard.core.service.impl.ReviewboardServiceImpl.validCredentials()

            isClientDataNull = true;
        }
        //强制刷新RepositoryData
        if( isClientDataNull || refreshForce ){
            IReviewboardService reviewboardService = new ReviewboardServiceImpl( reviewboardClient );
            boolean loginSuccess = reviewboardService.validCredentials(rbConfig.getUserId(), rbConfig.getPassword(), null);
            if( loginSuccess ){
                reviewboardService.updateRepositoryData(true, monitor);
                this.urlToClientMap.put(rbConfig.getServer(), reviewboardClient);
            }
        }
View Full Code Here

Examples of com.taobao.eclipse.plugin.reviewboard.core.service.impl.ReviewboardServiceImpl.validCredentials()

            isClientDataNull = true;
        }
        //强制刷新RepositoryData
        if( isClientDataNull || refreshForce ){
            IReviewboardService reviewboardService = new ReviewboardServiceImpl( reviewboardClient );
            boolean loginSuccess = reviewboardService.validCredentials(userName, password, null);
            if( loginSuccess ){
                this.urlToClientMap.put(serverUrl, reviewboardClient);
                reviewboardService.updateRepositoryData(true, new NullProgressMonitor());
            }
        }
View Full Code Here

Examples of com.taobao.eclipse.plugin.reviewboard.core.service.impl.ReviewboardServiceImpl.validCredentials()

            if( null == rbConfig || null == rbConfig.getServer()){
                return ;
            }
            //强制刷新RepositoryData
            IReviewboardService reviewboardService = new ReviewboardServiceImpl( reviewboardClient );
            boolean loginSuccess = reviewboardService.validCredentials(rbConfig.getUserId(), rbConfig.getPassword(), null);
            if( loginSuccess ){
                reviewboardService.updateRepositoryData(true, new NullProgressMonitor());
            }
        } catch (Exception e) {
        }
View Full Code Here

Examples of org.keycloak.models.UserProvider.validCredentials()

        UserModel user = userProvider.addUser(realmModel, "bburke");
        UserCredentialModel cred = new UserCredentialModel();
        cred.setType(CredentialRepresentation.PASSWORD);
        cred.setValue("geheim");
        user.updateCredential(cred);
        Assert.assertTrue(userProvider.validCredentials(realmModel, user, UserCredentialModel.password("geheim")));
        List<UserCredentialValueModel> creds = user.getCredentialsDirectly();
        Assert.assertEquals(creds.get(0).getHashIterations(), 1);
        realmModel.setPasswordPolicy( new PasswordPolicy("hashIterations(200)"));
        Assert.assertTrue(userProvider.validCredentials(realmModel, user, UserCredentialModel.password("geheim")));
        creds = user.getCredentialsDirectly();
View Full Code Here

Examples of org.keycloak.models.UserProvider.validCredentials()

        user.updateCredential(cred);
        Assert.assertTrue(userProvider.validCredentials(realmModel, user, UserCredentialModel.password("geheim")));
        List<UserCredentialValueModel> creds = user.getCredentialsDirectly();
        Assert.assertEquals(creds.get(0).getHashIterations(), 1);
        realmModel.setPasswordPolicy( new PasswordPolicy("hashIterations(200)"));
        Assert.assertTrue(userProvider.validCredentials(realmModel, user, UserCredentialModel.password("geheim")));
        creds = user.getCredentialsDirectly();
        Assert.assertEquals(creds.get(0).getHashIterations(), 200);
        realmModel.setPasswordPolicy( new PasswordPolicy("hashIterations(1)"));
    }
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.