/// <summary> /// Obtain a login ticket and login with it. /// </summary> private void HandleTicketLoginStep() { m_currentStep = KwsLoginStep.Ticket; m_ticketQuery = new WmLoginTicketQuery(); m_ticketQuery.Submit(Wm.KmodBroker, KwmCfg.Cur, HandleTicketLoginResult); }
/// <summary> /// Notify the client that we need a password. /// </summary> private void HandlePwdLoginStep() { m_currentStep = KwsLoginStep.Pwd; m_ks.PwdRequiredFlag = true; m_kws.OnStateChange(WmStateChange.Transient); }
/// <summary> /// This method is called by the workspace state machine to indicate /// that the workspace is logged out. /// </summary> public void ResetOnLogout() { m_currentStep = KwsLoginStep.None; m_ks.ResetOnLogout(); ClearTicketQuery(); }
/// <summary> /// Send the cached credentials to the KCD. /// </summary> private void HandleCachedLoginStep() { m_currentStep = KwsLoginStep.Cached; SendLoginCommand(); }
/// <summary> /// Prompt the user for a password and login with it. 'failedFlag' is /// true if the last password provided is wrong. /// </summary> private void HandlePwdLoginStep(bool failedFlag) { m_currentStep = KwsLoginStep.Pwd; m_pwdRequest = new LoginHandlerPwdPromptGer(this, m_kws.CoreData.Credentials.KwsName, m_kws.CoreData.Credentials.Pwd, failedFlag); m_kws.PostGuiExecRequest(m_pwdRequest); }
/// <summary> /// Obtain a login ticket and login with it. /// </summary> private void HandleTicketLoginStep(WmWinRegistry registry) { m_currentStep = KwsLoginStep.Ticket; m_ticketQuery = new WmLoginTicketQuery(); m_ticketQuery.Submit(m_wm.KmodBroker, registry, HandleTicketLoginResult); }
/// <summary> /// Send the cached credentials to the KAS. /// </summary> private void HandleCachedLoginStep() { m_currentStep = KwsLoginStep.Cached; SendLoginCommand(); }
/// <summary> /// Cancel and clear the ticket query and the password request, if /// required and set the current login step to None. /// </summary> public void ClearAllQueries() { m_currentStep = KwsLoginStep.None; ClearTicketQuery(); ClearPwdRequest(); }