public IDD_SET_PASSWORD(CPasswordSiloInformation siloInformation) : this()
 {
     this.siloInformation        = siloInformation;
     IDC_INDICATOR_ADMIN.Checked = true;
     IDC_INDICATOR_USER.Enabled  = siloInformation.SiloInfo.UserCreated;
     IDC_DEVICE_SID.Enabled      = siloInformation.SiloInfo.SecurityIDAvailable;
     IDC_ODL_PASSWORD.Enabled    = siloInformation.dwAuthnState != EnhancedStorage.ENHANCED_STORAGE_AUTHN_STATE.ENHANCED_STORAGE_AUTHN_STATE_NOT_AUTHENTICATED;
     IDC_PASSWORD_HINT.Text      = siloInformation.AdminHint;
 }
Esempio n. 2
0
        private void OnPasswordQueryInformation(object sender, EventArgs e)
        {
            IPortableDevice dev = SelectedDevice;

            if (dev is null)
            {
                return;
            }

            CPasswordSiloInformation siloInformation = dev.PasswordQueryInformation();

            new IDD_PWDSILO_INFO(siloInformation).ShowDialog(this);
        }
 public IDD_PWDSILO_INFO(CPasswordSiloInformation siloInformation) : this()
 {
     IDC_FRIENDLY_NAME.Text = siloInformation.SiloName;
     IDC_ADMIN_HINT.Text    = siloInformation.AdminHint;
     if (siloInformation.SiloInfo.UserCreated)
     {
         IDC_USER_NAME.Text = siloInformation.UserName;
         IDC_USER_HINT.Text = siloInformation.UserHint;
     }
     else
     {
         IDC_USER_NAME.Text = "{No User Created}";
     }
     IDC_AUTHN_STATE.Text = siloInformation.dwAuthnState.ToString().Substring(29);
 }
Esempio n. 4
0
        private void OnPasswordSet(object sender, EventArgs e)
        {
            IPortableDevice dev = SelectedDevice;

            if (dev is null)
            {
                return;
            }

            CPasswordSiloInformation siloInformation = dev.PasswordQueryInformation();
            IDD_SET_PASSWORD         dlg             = new(siloInformation);

            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                dev.PasswordChangePassword(dlg.IsAdmin, dlg.OldPassword, dlg.NewPassword, dlg.PasswordHint, dlg.SID);
            }
        }
Esempio n. 5
0
        private void OnPasswordInittomanufacturerstate(object sender, EventArgs e)
        {
            IPortableDevice dev = SelectedDevice;

            if (dev is null)
            {
                return;
            }

            CPasswordSiloInformation siloInformation = dev.PasswordQueryInformation();
            IDD_PWD_ITMS             dlg             = new(siloInformation.SiloInfo.SecurityIDAvailable);

            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                dev.PasswordInitializeToManufacturerState(dlg.SID);
            }
        }