Пример #1
0
        private void CompleteSignature()
        {
            ISignatureValueSecurityElement signedXml = this.CompletePrimarySignatureCore(
                elementContainer.GetSignatureConfirmations(), elementContainer.GetSignedEndorsingSupportingTokens(),
                elementContainer.GetSignedSupportingTokens(), elementContainer.GetBasicSupportingTokens(), true);

            if (signedXml == null)
            {
                return;
            }
            this.elementContainer.PrimarySignature = new SendSecurityHeaderElement(signedXml.Id, signedXml);
            this.elementContainer.PrimarySignature.MarkedForEncryption = this.encryptSignature;
            AddGeneratedSignatureValue(signedXml.GetSignatureValue(), this.EncryptPrimarySignature);
            this.primarySignatureDone  = true;
            this.primarySignatureValue = signedXml.GetSignatureValue();
        }
 public void AppendSignatureConfirmation(ISignatureValueSecurityElement signatureConfirmationElement)
 {
     AppendElement(ReceiveSecurityHeaderElementCategory.SignatureConfirmation, signatureConfirmationElement,
                   ReceiveSecurityHeaderBindingModes.Unknown, signatureConfirmationElement.Id, null);
 }
 public void SetSignatureConfirmationAfterDecryption(int index, ISignatureValueSecurityElement signatureConfirmationElement, byte[] decryptedBuffer)
 {
     SetElementAfterDecryption(index, ReceiveSecurityHeaderElementCategory.SignatureConfirmation,
                               signatureConfirmationElement, ReceiveSecurityHeaderBindingModes.Unknown, signatureConfirmationElement.Id, decryptedBuffer, null);
 }