Class XmlObfuscator
Provides methods for obfuscation and size reduction of human readable XML documents.
Inherited Members
Namespace: Cuemon.Security
Assembly: Cuemon.Xml.dll
Syntax
public class XmlObfuscator : Obfuscator
Constructors
| Improve this DocXmlObfuscator()
Initializes a new instance of the XmlObfuscator class using System.Text.Encoding.UTF8 for the text encoding.
Declaration
public XmlObfuscator()
XmlObfuscator(IEnumerable<String>)
Initializes a new instance of the XmlObfuscator class.
Declaration
public XmlObfuscator(IEnumerable<string> exclusions)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | exclusions | A sequence of System.String values used for excluding matching original values in the obfuscation process. |
XmlObfuscator(Encoding)
Initializes a new instance of the XmlObfuscator class using System.Text.Encoding.UTF8 for the text encoding.
Declaration
public XmlObfuscator(Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
System.Text.Encoding | encoding | The text encoding to use. |
XmlObfuscator(Encoding, IEnumerable<String>)
Initializes a new instance of the XmlObfuscator class.
Declaration
public XmlObfuscator(Encoding encoding, IEnumerable<string> exclusions)
Parameters
Type | Name | Description |
---|---|---|
System.Text.Encoding | encoding | The character encoding to use. |
System.Collections.Generic.IEnumerable<System.String> | exclusions | A sequence of System.String values used for excluding matching original values in the obfuscation process. |
Methods
| Improve this DocCreateMapping()
Creates and returns a mappaple XML document of the original values and the obfuscated values.
Declaration
public override Stream CreateMapping()
Returns
Type | Description |
---|---|
System.IO.Stream | A mappaple XML document of the original values and the obfuscated values. |
Overrides
| Improve this DocInitializePermutationCharacters()
Initializes the permutation characters used in the obfuscation process using the default implmentation, but with the numeric characters removed.
Declaration
protected override IList<char> InitializePermutationCharacters()
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<System.Char> | An System.Collections.Generic.IList<T> compatible object holding the permuation characters used in the obfuscation process, but with the numeric characters removed. |
Overrides
| Improve this DocObfuscate(Stream)
Obfuscates the XML document of the specified System.IO.Stream object.
Declaration
public override Stream Obfuscate(Stream value)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | value | The System.IO.Stream object to obfuscate. |
Returns
Type | Description |
---|---|
System.IO.Stream | A System.IO.Stream object where the XML document has been obfuscated. |
Overrides
| Improve this DocRevert(Stream, Stream)
Revert the obfuscated XML document of value
to its original state by applying the mappaple XML document of mapping
.
Declaration
public override Stream Revert(Stream value, Stream mapping)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | value | The obfuscated System.IO.Stream to revert. |
System.IO.Stream | mapping | A System.IO.Stream containing mappaple values necessary to revert |
Returns
Type | Description |
---|---|
System.IO.Stream | A System.IO.Stream object where the obfuscated XML document has been reverted to its original XML document. |