//-----------------------------------------------------------------------
//
// Copyright (c) Microsoft. All rights reserved.
//
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.ApplicationBlock
{
using System;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.Serialization;
///
/// Contains header of AzureAD JWT token.
///
///
/// Technically, this class doesn't need to be public, but because we want to make it serializable in medium trust, it has to be public.
///
[DataContract]
[EditorBrowsable(EditorBrowsableState.Never)]
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "AzureAD", Justification = "Brand name")]
public class AzureADHeader
{
#region Public Properties
///
/// Gets or sets the type of token. Will always be JWT
///
/// The type of token.
[DataMember(Name = "typ")]
public string Typ { get; set; }
///
/// Gets or sets the algo of the header.
///
/// The algo of encoding.
[DataMember(Name = "alg")]
public string Alg { get; set; }
///
/// Gets or sets the thumbprint of the header.
///
/// The thumbprint of the cert used to encode.
[DataMember(Name = "x5t")]
public string X5t { get; set; }
#endregion
}
}