// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
namespace Microsoft.AspNetCore.DataProtection
{
///
/// Represents a secret value.
///
public interface ISecret : IDisposable
{
///
/// The length (in bytes) of the secret value.
///
int Length { get; }
///
/// Writes the secret value to the specified buffer.
///
/// The buffer which should receive the secret value.
///
/// The buffer size must exactly match the length of the secret value.
///
void WriteSecretIntoBuffer(ArraySegment buffer);
}
}