39 references to Signature
System.IdentityModel (39)
System\IdentityModel\EnvelopedSignatureReader.cs (22)
103WifSignedInfo signedInfo = _signedXml.Signature.SignedInfo as WifSignedInfo; 177if (_signedXml.Signature.SignedInfo.ReferenceCount != 1) 185if (_signedXml.Signature == null || _signedXml.Signature.KeyIdentifier == null || _signedXml.Signature.KeyIdentifier.Count == 0) 191WifSignedInfo signedInfo = _signedXml.Signature.SignedInfo as WifSignedInfo; 192if (!_signingTokenResolver.TryResolveSecurityKey(_signedXml.Signature.KeyIdentifier[0], out signingKey)) 194if (_resolveIntrinsicSigningKeys && _signedXml.Signature.KeyIdentifier.CanCreateKey) 196if (_signedXml.Signature.KeyIdentifier.Count < 2 || LocalAppContextSwitches.ReturnMultipleSecurityKeyIdentifierClauses) 198signingKey = _signedXml.Signature.KeyIdentifier.CreateKey(); 199_signingCredentials = new SigningCredentials(signingKey, _signedXml.Signature.SignedInfo.SignatureMethod, signedInfo[0].DigestMethod, _signedXml.Signature.KeyIdentifier); 204foreach (var clause in _signedXml.Signature.KeyIdentifier) 208_signingCredentials = new SigningCredentials(clause.CreateKey(), _signedXml.Signature.SignedInfo.SignatureMethod, signedInfo[0].DigestMethod, new SecurityKeyIdentifier(clause)); 222if (_signedXml.Signature.KeyIdentifier.TryFind<EncryptedKeyIdentifierClause>(out encryptedKeyClause)) 231SR.GetString(SR.ID4036, XmlUtil.SerializeSecurityKeyIdentifier(_signedXml.Signature.KeyIdentifier, _tokenSerializer)))); 236new SignatureVerificationFailedException(SR.GetString(SR.ID4037, _signedXml.Signature.KeyIdentifier.ToString()))); 242if (_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)
117signedXml.Signature.KeyIdentifier = _signingCreds.SigningKeyIdentifier;
System\IdentityModel\SignedXml.cs (14)
79this.Signature.SignedInfo.ComputeReferenceDigests(); 80this.Signature.SignedInfo.ComputeHash(hash); 94this.Signature.SetSignatureValue(signature); 99this.Signature.SignedInfo.ComputeReferenceDigests(); 100this.Signature.SignedInfo.ComputeHash(hash); 102this.Signature.SetSignatureValue(signature); 107string signatureMethod = this.Signature.SignedInfo.SignatureMethod; 150this.Signature.SignedInfo.EnsureAllReferencesVerified(); 155this.Signature.SignedInfo.EnsureDigestValidity(id, resolvedXmlSource); 160return this.Signature.SignedInfo.EnsureDigestValidityIfIdMatches(id, resolvedXmlSource); 165return this.Signature.GetSignatureBytes(); 180this.Signature.SignedInfo.ComputeHash(hash); 189this.Signature.SignedInfo.ComputeHash(hash); 213string signatureMethod = this.Signature.SignedInfo.SignatureMethod;
System\IdentityModel\Tokens\SamlAssertion.cs (2)
319SecurityKeyIdentifier securityKeyIdentifier = signedXml.Signature.KeyIdentifier; 480signedXml.Signature.KeyIdentifier = this.signingCredentials.SigningKeyIdentifier;