public class ClientIPObfuscation extends Object implements Obfuscator
This class implements a simple client IP address obfuscation. It will check the audit-log header
for the client IP and replace this with a x.x.x.x-string in all subsequent sections
as well.
| Modifier and Type | Field and Description |
|---|---|
static String |
IPv4_ADDRESS_PATTERN |
static String |
IPv6_ADDRESS_PATTERN |
| Constructor and Description |
|---|
ClientIPObfuscation() |
| Modifier and Type | Method and Description |
|---|---|
void |
done()
This method is called once all sections have been given to the obfuscator.
|
String |
getExpression() |
String |
getReplacement() |
List<Integer> |
getSections() |
String |
getVariable() |
String |
obfuscate(Integer id,
String sectionData)
This method does the obfuscation on the given section data.
|
public static final String IPv4_ADDRESS_PATTERN
public static final String IPv6_ADDRESS_PATTERN
public List<Integer> getSections()
getSections in interface Obfuscatorpublic String obfuscate(Integer id, String sectionData) throws IOException
Obfuscatorobfuscate in interface Obfuscatorid - The ID of the section data, given as additional parameter.sectionData - The section data.IOException - In case an I/O error occurs.public String getExpression()
public String getReplacement()
public String getVariable()
public void done()
Obfuscatordone in interface ObfuscatorObfuscator.done()Copyright © 2013 jwall.org. All Rights Reserved.