Class Anonymizer
In-app anonymization is provided by applying various transformations to facets of the data that are generated. For example, numeric values can be rounded and textual data can be passed through one-way hash functions.
Inheritance
System.Object
Anonymizer
Namespace: Sensus.Anonymization.Anonymizers
Assembly: SensusAndroid.dll
Syntax
public abstract class Anonymizer : Object
Constructors
Anonymizer()
Declaration
protected Anonymizer()
Properties
DisplayText
Declaration
public abstract string DisplayText { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
Apply(Object, Protocol)
Applies this anonymizer the value of a datum property. It is important to always return the same datatype as is passed in.
Declaration
public abstract object Apply(object value, Protocol protocol)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | value | Datum property value to anonymize. |
| Protocol | protocol | Protocol that owns the datum being anonymized. |
Returns
| Type | Description |
|---|---|
| System.Object |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj |
Returns
| Type | Description |
|---|---|
| System.Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |