ISecret Interface

Represents a secret value.

Namespace
Microsoft.AspNetCore.DataProtection
Assemblies
  • Microsoft.AspNetCore.DataProtection

Syntax

public interface ISecret : IDisposable
interface Microsoft.AspNetCore.DataProtection.ISecret

Properties

Microsoft.AspNetCore.DataProtection.ISecret.Length

The length (in bytes) of the secret value.

Return type:System.Int32
int Length { get; }

Methods

WriteSecretIntoBuffer(System.ArraySegment<System.Byte>)

Writes the secret value to the specified buffer.

Arguments:buffer (System.ArraySegment<System.Byte>) – The buffer which should receive the secret value.
void WriteSecretIntoBuffer(ArraySegment<byte> buffer)