Microsoft.AspNetCore.DataProtection.Abstractions Determines whether an exception must be homogenized by being wrapped inside a CryptographicException before being rethrown. Helpful extension methods for data protection APIs. Creates an given a list of purposes. The from which to generate the purpose chain. The list of purposes which contribute to the purpose chain. This list must contain at least one element, and it may not contain null elements. An tied to the provided purpose chain. This is a convenience method which chains together several calls to . See that method's documentation for more information. Creates an given a list of purposes. The from which to generate the purpose chain. The primary purpose used to create the . An optional list of secondary purposes which contribute to the purpose chain. If this list is provided it cannot contain null elements. An tied to the provided purpose chain. This is a convenience method which chains together several calls to . See that method's documentation for more information. Retrieves an from an . The service provider from which to retrieve the . An . This method is guaranteed never to return null. If no service exists in . Retrieves an from an given a list of purposes. An which contains the from which to generate the purpose chain. The list of purposes which contribute to the purpose chain. This list must contain at least one element, and it may not contain null elements. An tied to the provided purpose chain. This is a convenience method which calls then . See those methods' documentation for more information. Retrieves an from an given a list of purposes. An which contains the from which to generate the purpose chain. The primary purpose used to create the . An optional list of secondary purposes which contribute to the purpose chain. If this list is provided it cannot contain null elements. An tied to the provided purpose chain. This is a convenience method which calls then . See those methods' documentation for more information. Cryptographically protects a piece of plaintext data. The data protector to use for this operation. The plaintext data to protect. The protected form of the plaintext data. Cryptographically unprotects a piece of protected data. The data protector to use for this operation. The protected data to unprotect. The plaintext form of the protected data. Thrown if is invalid or malformed. An interface that can be used to create instances. Creates an given a purpose. The purpose to be assigned to the newly-created . An IDataProtector tied to the provided purpose. The parameter must be unique for the intended use case; two different instances created with two different values will not be able to decipher each other's payloads. The parameter value is not intended to be kept secret. An interface that can provide data protection services. Cryptographically protects a piece of plaintext data. The plaintext data to protect. The protected form of the plaintext data. Cryptographically unprotects a piece of protected data. The protected data to unprotect. The plaintext form of the protected data. Thrown if the protected data is invalid or malformed. Decodes a base64url-encoded string. The base64url-encoded input to decode. The base64url-decoded form of the input. The input must not contain any whitespace or padding characters. Throws FormatException if the input is malformed. Encodes an input using base64url encoding. The binary input to encode. The base64url-encoded form of the input. Provides information used to discriminate applications. This type supports the data protection system and is not intended to be used by consumers. An identifier that uniquely discriminates this application from all other applications on the machine. The payload was invalid. The payload was invalid. The purposes collection cannot be null or empty and cannot contain null elements. The purposes collection cannot be null or empty and cannot contain null elements. An error occurred during a cryptographic operation. An error occurred during a cryptographic operation. No service for type '{0}' has been registered. No service for type '{0}' has been registered.