public class AuditEventObfuscatorChain extends Object
This class implements a chain of obfuscators. Obfuscators are small snipplets which may replace/anonymize parts of an audit event.
| Modifier and Type | Field and Description |
|---|---|
protected List<Obfuscator> |
obfuscators
The list of obfuscators which shall be executed on the event
|
| Constructor and Description |
|---|
AuditEventObfuscatorChain()
Create a new obfuscator chain.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addObfuscator(Obfuscator ob)
This adds a new obfuscator to the list of this chain.
|
AuditEvent |
obfuscate(AuditEvent evt) |
boolean |
obfuscatesSection(Obfuscator obfuscator,
Integer id)
Checks whether the given obfuscator needs to process the section with the
specified ID.
|
protected List<Obfuscator> obfuscators
public AuditEventObfuscatorChain()
public void addObfuscator(Obfuscator ob)
ob - public boolean obfuscatesSection(Obfuscator obfuscator, Integer id)
obfuscator - id - public AuditEvent obfuscate(AuditEvent evt) throws IOException
IOExceptionCopyright © 2014 jwall.org. All Rights Reserved.