DataProtectorShim Class

Converts an Microsoft.AspNetCore.DataProtection.IDataProtector to an Microsoft.Owin.Security.DataProtection.IDataProtector.

Namespace
Microsoft.Owin.Security.Interop
Assemblies
  • Microsoft.Owin.Security.Interop

Syntax

public sealed class DataProtectorShim : IDataProtector
class Microsoft.Owin.Security.Interop.DataProtectorShim

Constructors

DataProtectorShim(Microsoft.AspNetCore.DataProtection.IDataProtector)
public DataProtectorShim(IDataProtector protector)

Methods

Protect(System.Byte[])
Return type:System.Byte<System.Byte>[]
public byte[] Protect(byte[] userData)
Unprotect(System.Byte[])
Return type:System.Byte<System.Byte>[]
public byte[] Unprotect(byte[] protectedData)