1 write to _signedXml
System.IdentityModel (1)
System\IdentityModel\EnvelopedSignatureReader.cs (1)
172
_signedXml
= new SignedXml(new WifSignedInfo(_dictionaryManager), _dictionaryManager, _tokenSerializer);
29 references to _signedXml
System.IdentityModel (29)
System\IdentityModel\EnvelopedSignatureReader.cs (29)
90
if (null ==
_signedXml
)
101
_signedXml
.StartSignatureVerification(_signingCredentials.SigningKey);
103
WifSignedInfo signedInfo =
_signedXml
.Signature.SignedInfo as WifSignedInfo;
104
_signedXml
.EnsureDigestValidity(signedInfo[0].ExtractReferredId(), _wrappedReader);
105
_signedXml
.CompleteSignatureVerification();
159
&& (
_signedXml
== null)
173
_signedXml
.TransformFactory = ExtendedTransformFactory.Instance;
175
_signedXml
.ReadFrom(_wrappedReader);
177
if (
_signedXml
.Signature.SignedInfo.ReferenceCount != 1)
185
if (
_signedXml
.Signature == null ||
_signedXml
.Signature.KeyIdentifier == null ||
_signedXml
.Signature.KeyIdentifier.Count == 0)
191
WifSignedInfo signedInfo =
_signedXml
.Signature.SignedInfo as WifSignedInfo;
192
if (!_signingTokenResolver.TryResolveSecurityKey(
_signedXml
.Signature.KeyIdentifier[0], out signingKey))
194
if (_resolveIntrinsicSigningKeys &&
_signedXml
.Signature.KeyIdentifier.CanCreateKey)
196
if (
_signedXml
.Signature.KeyIdentifier.Count < 2 || LocalAppContextSwitches.ReturnMultipleSecurityKeyIdentifierClauses)
198
signingKey =
_signedXml
.Signature.KeyIdentifier.CreateKey();
199
_signingCredentials = new SigningCredentials(signingKey,
_signedXml
.Signature.SignedInfo.SignatureMethod, signedInfo[0].DigestMethod,
_signedXml
.Signature.KeyIdentifier);
204
foreach (var clause in
_signedXml
.Signature.KeyIdentifier)
208
_signingCredentials = new SigningCredentials(clause.CreateKey(),
_signedXml
.Signature.SignedInfo.SignatureMethod, signedInfo[0].DigestMethod, new SecurityKeyIdentifier(clause));
222
if (
_signedXml
.Signature.KeyIdentifier.TryFind<EncryptedKeyIdentifierClause>(out encryptedKeyClause))
231
SR.GetString(SR.ID4036, XmlUtil.SerializeSecurityKeyIdentifier(
_signedXml
.Signature.KeyIdentifier, _tokenSerializer))));
236
new SignatureVerificationFailedException(SR.GetString(SR.ID4037,
_signedXml
.Signature.KeyIdentifier.ToString())));
242
if (
_signedXml
.Signature.KeyIdentifier.Count < 2 || LocalAppContextSwitches.ReturnMultipleSecurityKeyIdentifierClauses)
243
_signingCredentials = new SigningCredentials(signingKey,
_signedXml
.Signature.SignedInfo.SignatureMethod, signedInfo[0].DigestMethod,
_signedXml
.Signature.KeyIdentifier);
245
_signingCredentials = new SigningCredentials(signingKey,
_signedXml
.Signature.SignedInfo.SignatureMethod, signedInfo[0].DigestMethod, new SecurityKeyIdentifier(
_signedXml
.Signature.KeyIdentifier[0]));