Пример #1
0
        private void okButton_Click(object sender, EventArgs e)
        {
            this.passphraseTextBox.Enabled = false;
              this.repeatTextBox.Enabled = false;
              this.okButton.Enabled = false;

              var signatureRequest = this.controller.UserData;
              var certificate = new VoterCertificate(Language.German, this.passphraseTextBox.Text, 0);
              certificate.CreateSelfSignature();
              var secureRequest = new Secure<SignatureRequest>(signatureRequest, this.caCertificate, certificate);
              var requestInfo = new SignatureRequestInfo(string.Empty, signatureRequest.Encrypt());
              var secureRequestInfo = new Secure<SignatureRequestInfo>(requestInfo, this.controller.ServerCertificate, certificate);
              var requestContainer = new RequestContainer(signatureRequest, secureRequest, secureRequestInfo);

              this.requestStatusTextBox.Text = "Übermitteln...";
              this.controller.RequestContainer = requestContainer;
        }
Пример #2
0
        public bool PushSignaturRequest(RequestContainer request)
        {
            byte[] replyData = TryExecute(MessageFunction.PushSignatureRequest, request.ToBinary());

              return replyData != null;
        }