Show / Hide Table of Contents

Class ExtensionMethodsForEncryption

Extension methods that assist or enable functionality found within the extension model namespace for encryption (ExtendedXmlSerializer.ExtensionModel.Encryption).

Inheritance
System.Object
ExtensionMethodsForEncryption
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ExtendedXmlSerializer
Assembly: ExtendedXmlSerializer.dll
Syntax
public static class ExtensionMethodsForEncryption

Methods

Encrypt<T, TMember>(IMemberConfiguration<T, TMember>)

Encrypts the specified member with the default encryption, which is a base-64 string.

Declaration
public static IMemberConfiguration<T, TMember> Encrypt<T, TMember>(this IMemberConfiguration<T, TMember> this)
Parameters
IMemberConfiguration<T, TMember> this

The member to configure.

Returns
IMemberConfiguration<T, TMember>

The configured MemberConfiguration.

Type Parameters
T

The containing type of the member.

TMember

The member type.

UseEncryptionAlgorithm(IConfigurationContainer)

Configures a container for default encryption, which is base-64. Every registered converter will be wrapped with a converter which will further encrypt its reading and writing.

Declaration
public static IConfigurationContainer UseEncryptionAlgorithm(this IConfigurationContainer this)
Parameters
IConfigurationContainer this

The container to configure for encryption.

Returns
IConfigurationContainer

A configured IConfigurationContainer.

UseEncryptionAlgorithm(IConfigurationContainer, IAlteration<IConverter>)

Configures a container for encryption with the specified converter alteration. Every registered converter will be altered by the provided alteration.

Declaration
public static IConfigurationContainer UseEncryptionAlgorithm(this IConfigurationContainer this, IAlteration<IConverter> parameter)
Parameters
IConfigurationContainer this

The container which to configure for encryption.

IAlteration<IConverter> parameter

The alteration with which to alter each converter in the configuration container.

Returns
IConfigurationContainer

A configured IConfigurationContainer.

UseEncryptionAlgorithm(IConfigurationContainer, IEncryption)

Configures a container for encryption with the specified encryption component. Every registered converter will be wrapped with a converter which will further encrypt its reading and writing.

Declaration
public static IConfigurationContainer UseEncryptionAlgorithm(this IConfigurationContainer this, IEncryption encryption)
Parameters
IConfigurationContainer this

The container to configure for encryption.

IEncryption encryption

The encryption with which to encrypt and decrypt data.

Returns
IConfigurationContainer

A configured IConfigurationContainer.

Back to top Generated by DocFX