| | | 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 | | using System; |
| | | 5 | | using System.Collections.ObjectModel; |
| | | 6 | | using CoreWCF.IdentityModel.Tokens; |
| | | 7 | | |
| | | 8 | | namespace CoreWCF.IdentityModel.Claims |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// The authentication information that an authority asserted when creating a token for a subject. |
| | | 12 | | /// </summary> |
| | | 13 | | public class AuthenticationInformation |
| | | 14 | | { |
| | | 15 | | /// <summary> |
| | | 16 | | /// Initializes a new instance of the <see cref="AuthenticationInformation"/> class. |
| | | 17 | | /// </summary> |
| | 0 | 18 | | public AuthenticationInformation() |
| | | 19 | | { |
| | 0 | 20 | | AuthorizationContexts = new Collection<AuthenticationContext>(); |
| | 0 | 21 | | } |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// Gets or sets the address of the authority that created the token. |
| | | 25 | | /// </summary> |
| | 0 | 26 | | public string Address { get; set; } |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// Gets the <see cref="AuthorizationContext"/> used by the authenticating authority when issuing tokens. |
| | | 30 | | /// </summary> |
| | 0 | 31 | | public Collection<AuthenticationContext> AuthorizationContexts { get; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Gets or sets the DNS name of the authority that created the token. |
| | | 35 | | /// </summary> |
| | 0 | 36 | | public string DnsName { get; set; } |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// Gets or sets the time that the session referred to in the session index MUST be considered ended. |
| | | 40 | | /// </summary> |
| | 0 | 41 | | public DateTime? NotOnOrAfter { get; set; } |
| | | 42 | | |
| | | 43 | | /// <summary> |
| | | 44 | | /// Gets or sets the session index that describes the session between the authority and the client. |
| | | 45 | | /// </summary> |
| | 0 | 46 | | public string Session { get; set; } |
| | | 47 | | } |
| | | 48 | | } |