//----------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- namespace System.IdentityModel.Tokens { /// /// This class is used when a Saml2Assertion is received without a KeyInfo inside the signature element. /// The KeyInfo describes the key required to check the signature. When the key is needed this clause /// will be presented to the current SecurityTokenResolver. It will contain the /// Saml2Assertion fully read which can be querried to determine the key required. /// public class Saml2SecurityKeyIdentifierClause : SecurityKeyIdentifierClause { private Saml2Assertion assertion; /// /// Creates an instance of /// /// The assertion can be queried to obtain information about /// the issuer when resolving the key needed to check the signature. public Saml2SecurityKeyIdentifierClause(Saml2Assertion assertion) : base(typeof(Saml2SecurityKeyIdentifierClause).ToString()) { this.assertion = assertion; } /// /// Gets the that is currently associated with this instance. /// /// The assertion returned may be null. public Saml2Assertion Assertion { get { return this.assertion; } } } }