1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
using System.Collections.ObjectModel;
using System.IdentityModel.Tokens;
namespace System.Security.Claims
{
/// <summary>
/// The authentication information that an authority asserted when creating a token for a subject.
/// </summary>
public class AuthenticationInformation
{
string _address;
Collection<AuthenticationContext> _authContexts;
string _dnsName;
DateTime? _notOnOrAfter;
string _session;
/// <summary>
/// Initializes a new instance of the <see cref="AuthenticationInformation"/> class.
/// </summary>
public AuthenticationInformation()
{
_authContexts = new Collection<AuthenticationContext>();
}
/// <summary>
/// Gets or sets the address of the authority that created the token.
/// </summary>
public string Address
{
get { return _address; }
set { _address = value; }
}
/// <summary>
/// Gets the <see cref="AuthorizationContext"/> used by the authenticating authority when issuing tokens.
/// </summary>
public Collection<AuthenticationContext> AuthorizationContexts
{
get { return _authContexts; }
}
/// <summary>
/// Gets or sets the DNS name of the authority that created the token.
/// </summary>
public string DnsName
{
get { return _dnsName; }
set { _dnsName = value; }
}
/// <summary>
/// Gets or sets the time that the session referred to in the session index MUST be considered ended.
/// </summary>
public DateTime? NotOnOrAfter
{
get { return _notOnOrAfter; }
set { _notOnOrAfter = value; }
}
/// <summary>
/// Gets or sets the session index that describes the session between the authority and the client.
/// </summary>
public string Session
{
get { return _session; }
set { _session = value; }
}
}
}
|