39 references to Signature
System.IdentityModel (39)
System\IdentityModel\EnvelopedSignatureReader.cs (22)
103
WifSignedInfo signedInfo = _signedXml.
Signature
.SignedInfo as WifSignedInfo;
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]));
System\IdentityModel\EnvelopedSignatureWriter.cs (1)
117
signedXml.
Signature
.KeyIdentifier = _signingCreds.SigningKeyIdentifier;
System\IdentityModel\SignedXml.cs (14)
79
this.
Signature
.SignedInfo.ComputeReferenceDigests();
80
this.
Signature
.SignedInfo.ComputeHash(hash);
94
this.
Signature
.SetSignatureValue(signature);
99
this.
Signature
.SignedInfo.ComputeReferenceDigests();
100
this.
Signature
.SignedInfo.ComputeHash(hash);
102
this.
Signature
.SetSignatureValue(signature);
107
string signatureMethod = this.
Signature
.SignedInfo.SignatureMethod;
150
this.
Signature
.SignedInfo.EnsureAllReferencesVerified();
155
this.
Signature
.SignedInfo.EnsureDigestValidity(id, resolvedXmlSource);
160
return this.
Signature
.SignedInfo.EnsureDigestValidityIfIdMatches(id, resolvedXmlSource);
165
return this.
Signature
.GetSignatureBytes();
180
this.
Signature
.SignedInfo.ComputeHash(hash);
189
this.
Signature
.SignedInfo.ComputeHash(hash);
213
string signatureMethod = this.
Signature
.SignedInfo.SignatureMethod;
System\IdentityModel\Tokens\SamlAssertion.cs (2)
319
SecurityKeyIdentifier securityKeyIdentifier = signedXml.
Signature
.KeyIdentifier;
480
signedXml.
Signature
.KeyIdentifier = this.signingCredentials.SigningKeyIdentifier;