IDataProtector 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.
public interface class IDataProtector : Microsoft::AspNetCore::DataProtection::IDataProtectionProvider
	public interface IDataProtector : Microsoft.AspNetCore.DataProtection.IDataProtectionProvider
	type IDataProtector = interface
    interface IDataProtectionProvider
	Public Interface IDataProtector
Implements IDataProtectionProvider
	- Derived
 
- Implements
 
Methods
| CreateProtector(String) | 
		 Creates an IDataProtector given a purpose. (Inherited from IDataProtectionProvider) | 
        	
| Protect(Byte[]) | 
		 Cryptographically protects a piece of plaintext data.  | 
        	
| Unprotect(Byte[]) | 
		 Cryptographically unprotects a piece of protected data.  | 
        	
Extension Methods
| ToTimeLimitedDataProtector(IDataProtector) | 
		 Converts an IDataProtector into an ITimeLimitedDataProtector so that payloads can be protected with a finite lifetime.  | 
        	
| 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.  | 
        	
| Unprotect(IDataProtector, String) | 
		 Cryptographically unprotects a piece of protected data.  |