Beispiel #1
0
        private void btnContraFirma_Click(object sender, EventArgs e)
        {
            _firmaXades.PolicyIdentifier = txtIdentificadorPolitica.Text;
            _firmaXades.PolicyHash       = txtHashPolitica.Text;
            _firmaXades.PolicyUri        = txtURIPolitica.Text;

            _firmaXades.CounterSign(_firmaXades.SelectCertificate());

            MessageBox.Show("Firma completada correctamente.", "Test firma XADES",
                            MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
Beispiel #2
0
        private void btnContraFirma_Click(object sender, EventArgs e)
        {
            EstablecerPolitica();

            SignMethod tipoMetodoFirma = ObtenerAlgoritmo();

            _firmaXades.CounterSign(_firmaXades.SelectCertificate(), tipoMetodoFirma);

            MessageBox.Show("Firma completada correctamente.", "Test firma XADES",
                            MessageBoxButtons.OK, MessageBoxIcon.Information);
        }