| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | namespace CoreWCF.IdentityModel.Tokens |
| | | 5 | | { |
| | | 6 | | /// <summary> |
| | | 7 | | /// Represents an empty SecurityKeyClause. This class is used when an 'encrypted data element' or ' signature eleme |
| | | 8 | | /// not contain a 'key info element' that is used to describe the key required to decrypt the data or check the sign |
| | | 9 | | /// </summary> |
| | | 10 | | public class EmptySecurityKeyIdentifierClause : SecurityKeyIdentifierClause |
| | | 11 | | { |
| | | 12 | | |
| | | 13 | | /// <summary> |
| | | 14 | | /// Creates an instance of <see cref="EmptySecurityKeyIdentifierClause"/> |
| | | 15 | | /// </summary> |
| | | 16 | | /// <remarks>This constructor assumes that the user knows how to resolve the key required without any context.</ |
| | | 17 | | public EmptySecurityKeyIdentifierClause() |
| | 0 | 18 | | : this( null ) |
| | | 19 | | { |
| | 0 | 20 | | } |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// Creates an instance of <see cref="EmptySecurityKeyIdentifierClause"/> |
| | | 24 | | /// </summary> |
| | | 25 | | /// <param name="context">Used to provide a hint when there is a need resolve an empty clause to a particular ke |
| | | 26 | | /// In the case of Saml11 and Saml2 tokens that have signatures without KeyInfo, |
| | | 27 | | /// this clause will contain the assertion that is currently being processed.</param> |
| | | 28 | | public EmptySecurityKeyIdentifierClause( object context ) |
| | 0 | 29 | | : base( typeof( EmptySecurityKeyIdentifierClause ).ToString() ) |
| | | 30 | | { |
| | 0 | 31 | | Context = context; |
| | 0 | 32 | | } |
| | | 33 | | |
| | | 34 | | /// <summary> |
| | | 35 | | /// Used to provide a hint when there is a need to resolve to a particular key. |
| | | 36 | | /// In the case of Saml11 and Saml2 tokens that have signatures without KeyInfo, |
| | | 37 | | /// this will contain the assertion that is currently being processed. |
| | | 38 | | /// </summary> |
| | 0 | 39 | | public object Context { get; } |
| | | 40 | | } |
| | | 41 | | } |