|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--SimpleContentFilter
This class is a simple implementation of the ContentFilter interface.
It looks for a set of strings in HTML pages sent from websites back to the user's browser.
If any of those strings is found, it is substituted by another string that is drawn randomly
from a set of "substitution strings" for that particular string.
| Constructor Summary | |
protected |
SimpleContentFilter(java.lang.String filename)
The constructor needs to know the filename of the file that contains the set of strings that should be substituted as well as the substitution strings themselves. |
| Method Summary | |
java.lang.String |
filterHTTPHeaders(java.lang.String headers)
The Impostor daemon calls this method in order to remove sensitive information from HTTP headers sent from websites to the user's browser. |
java.lang.String |
filterWebPageLine(java.lang.String string)
The Impostor daemon calls this method in order to remove sensitive information from HTML pages sent from websites to the user's browser. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected SimpleContentFilter(java.lang.String filename)
throws java.io.FileNotFoundException,
java.io.IOException
John Smith:Donald Duck:Eric Cartman:Mickey Mouse
Dream Avenue 44:Wonderstreet 1:Honeypot Lane 68
882312858879:[number not shown]:00000000000:101010101010
John Smith with one of Donald Duck,
Eric Cartman or Mickey Mouse, at random. Likewise for the strings Dream Avenue 44 and
882312858879.
| Method Detail |
public java.lang.String filterWebPageLine(java.lang.String string)
ContentFilter
filterWebPageLine in interface ContentFilterpublic java.lang.String filterHTTPHeaders(java.lang.String headers)
ContentFilter
filterHTTPHeaders in interface ContentFilter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||