2 writes to KeyIdentifier
System.IdentityModel (2)
System\IdentityModel\EnvelopedSignatureWriter.cs (1)
117
signedXml.Signature.
KeyIdentifier
= _signingCreds.SigningKeyIdentifier;
System\IdentityModel\Tokens\SamlAssertion.cs (1)
480
signedXml.Signature.
KeyIdentifier
= this.signingCredentials.SigningKeyIdentifier;
15 references to KeyIdentifier
System.IdentityModel (15)
System\IdentityModel\EnvelopedSignatureReader.cs (14)
185
if (_signedXml.Signature == null || _signedXml.Signature.
KeyIdentifier
== null || _signedXml.Signature.
KeyIdentifier
.Count == 0)
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
)
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]));
System\IdentityModel\Tokens\SamlAssertion.cs (1)
319
SecurityKeyIdentifier securityKeyIdentifier = signedXml.Signature.
KeyIdentifier
;