File: PropertiesDataFormat.cs
Web Access
Project: src\src\Security\Authentication\Core\src\Microsoft.AspNetCore.Authentication.csproj (Microsoft.AspNetCore.Authentication)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using Microsoft.AspNetCore.DataProtection;
 
namespace Microsoft.AspNetCore.Authentication;
 
/// <summary>
/// A <see cref="SecureDataFormat{TData}"/> instance to secure
/// <see cref="AuthenticationProperties"/>.
/// </summary>
public class PropertiesDataFormat : SecureDataFormat<AuthenticationProperties>
{
    /// <summary>
    /// Initializes a new instance of <see cref="PropertiesDataFormat"/>.
    /// </summary>
    /// <param name="protector">The <see cref="IDataProtector"/>.</param>
    public PropertiesDataFormat(IDataProtector protector)
        : base(new PropertiesSerializer(), protector)
    {
    }
}