org.jwall.web.audit.util
Interface Obfuscator

All Known Implementing Classes:
ClientIPObfuscation

public interface Obfuscator

This is the interface of all obfuscator implementations. Usually an obfuscator provides a list of sections in which it will replace stuff. The main method for obfucation is obfuscate(Integer,String).

Author:
Christian Bockermann <chris@jwall.org>

Method Summary
 void done()
          This method is called once all sections have been given to the obfuscator.
 List<Integer> getSections()
           
 String obfuscate(Integer sectionId, String sectionData)
          This method does the obfuscation on the given section data.
 

Method Detail

getSections

List<Integer> getSections()
Returns:

obfuscate

String obfuscate(Integer sectionId,
                 String sectionData)
                 throws IOException
This method does the obfuscation on the given section data.

Parameters:
sectionId - The ID of the section data, given as additional parameter.
sectionData - The section data.
Returns:
The obfuscated section data.
Throws:
IOException - In case an I/O error occurs.

done

void done()
This method is called once all sections have been given to the obfuscator. Usually this will be called one the Z-section has been reached. It may be used to release all context-sensitive stuff being hold within the obfuscator instance.



Copyright © 2012 jwall.org. All Rights Reserved.