ISpanDataProtector Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An interface that can provide data protection services. Is an optimized version of IDataProtector.
public interface ISpanDataProtector : Microsoft.AspNetCore.DataProtection.IDataProtector
type ISpanDataProtector = interface
interface IDataProtector
interface IDataProtectionProvider
Public Interface ISpanDataProtector
Implements IDataProtector
- Implements
Methods
| Name | Description |
|---|---|
| CreateProtector(String) |
Creates an IDataProtector given a purpose. (Inherited from IDataProtectionProvider) |
| Protect(Byte[]) |
Cryptographically protects a piece of plaintext data. (Inherited from IDataProtector) |
| Protect<TWriter>(ReadOnlySpan<Byte>, TWriter) |
Cryptographically protects a piece of plaintext data and writes the result to a buffer writer. |
| Unprotect(Byte[]) |
Cryptographically unprotects a piece of protected data. (Inherited from IDataProtector) |
| Unprotect<TWriter>(ReadOnlySpan<Byte>, TWriter) |
Cryptographically unprotects a piece of protected data and writes the result to a buffer writer. |
Extension Methods
| Name | Description |
|---|---|
| CreateProtector(IDataProtectionProvider, IEnumerable<String>) |
Creates an IDataProtector given a list of purposes. |
| CreateProtector(IDataProtectionProvider, String, String[]) |
Creates an IDataProtector given a list of purposes. |
| Protect(IDataProtector, String) |
Cryptographically protects a piece of plaintext data. |
| ToTimeLimitedDataProtector(IDataProtector) |
Converts an IDataProtector into an ITimeLimitedDataProtector so that payloads can be protected with a finite lifetime. |
| Unprotect(IDataProtector, String) |
Cryptographically unprotects a piece of protected data. |