//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
using System.Collections.ObjectModel;
using System.IdentityModel.Tokens;
namespace System.Security.Claims
{
///
/// The authentication information that an authority asserted when creating a token for a subject.
///
public class AuthenticationInformation
{
string _address;
Collection _authContexts;
string _dnsName;
DateTime? _notOnOrAfter;
string _session;
///
/// Initializes a new instance of the class.
///
public AuthenticationInformation()
{
_authContexts = new Collection();
}
///
/// Gets or sets the address of the authority that created the token.
///
public string Address
{
get { return _address; }
set { _address = value; }
}
///
/// Gets the used by the authenticating authority when issuing tokens.
///
public Collection AuthorizationContexts
{
get { return _authContexts; }
}
///
/// Gets or sets the DNS name of the authority that created the token.
///
public string DnsName
{
get { return _dnsName; }
set { _dnsName = value; }
}
///
/// Gets or sets the time that the session referred to in the session index MUST be considered ended.
///
public DateTime? NotOnOrAfter
{
get { return _notOnOrAfter; }
set { _notOnOrAfter = value; }
}
///
/// Gets or sets the session index that describes the session between the authority and the client.
///
public string Session
{
get { return _session; }
set { _session = value; }
}
}
}