SecureDataFormat<TData> Class¶
- Namespace
Microsoft.AspNetCore.Authentication
- Assemblies
- Microsoft.AspNetCore.Authentication
Syntax¶
public class SecureDataFormat<TData> : ISecureDataFormat<TData>
-
class
Microsoft.AspNetCore.Authentication.
SecureDataFormat<TData>
¶
Constructors¶
-
SecureDataFormat
(Microsoft.AspNetCore.Authentication.IDataSerializer<TData>, Microsoft.AspNetCore.DataProtection.IDataProtector)¶ public SecureDataFormat(IDataSerializer<TData> serializer, IDataProtector protector)
-
Methods¶
-
Protect
(TData)¶ Return type: System.String public string Protect(TData data)
-
Protect
(TData, System.String) Return type: System.String public string Protect(TData data, string purpose)
-
Unprotect
(System.String)¶ Return type: TData public TData Unprotect(string protectedText)
-
Unprotect
(System.String, System.String) Return type: TData public TData Unprotect(string protectedText, string purpose)
-