201202203204205206207
pwdCredential = convertCredentialLdapToJetty(pwdCredential); Credential credential = Credential.getCredential(pwdCredential); List roles = getUserRoles(_rootContext, username); return new UserInfo(username, credential, roles); }
399400401402403404405406407408409
{ return bindingLogin(webUserName, webCredential); } // This sets read and the credential UserInfo userInfo = getUserInfo(webUserName); if( userInfo == null) { setAuthenticated(false); return false; }
479480481482483484485486487488489
DirContext dirContext = new InitialDirContext(environment); List roles = getUserRolesByDn(dirContext, userDn); UserInfo userInfo = new UserInfo(username, null, roles); setCurrentUser(new JAASUserInfo(userInfo)); setAuthenticated(true); return true; }