|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.streamscanner.MimeSniffingScanner
public class MimeSniffingScanner
a simple scanner trying to protect against attacks on Internet Explorer's MIME sniffing vulnerabilities.
| Constructor Summary | |
|---|---|
MimeSniffingScanner()
default constructor. |
|
| Method Summary | |
|---|---|
void |
close()
does nothing for this scanner. |
void |
scan(byte[] b)
scans the given byte array. |
void |
scan(int b)
scans the given byte. |
void |
setContentType(java.lang.String t)
this scanner will only be applied to non-text content-types, i.e. all streams with a content-type of text/* will not be
scanned. |
void |
setUser(User u)
sets the user. |
void |
shutdown()
unconditionally frees all resources of this scanner. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MimeSniffingScanner()
| Method Detail |
|---|
public final void setContentType(java.lang.String t)
text/* will not be
scanned.
setContentType in interface IStreamScannert - the content-typepublic void setUser(User u)
setUser in interface IStreamScanneru - the user to set
public final void scan(byte[] b)
throws XSSStreamException
scan in interface IStreamScannerb - the byte array to be scanned
XSSStreamException - if the scanner finds any of the triggers
public final void scan(int b)
throws XSSStreamException
scan in interface IStreamScannerb - the byte to scan
XSSStreamException - if the scanner finds any of the triggerspublic final void close()
close in interface IStreamScannerIStreamScanner.close()public final void shutdown()
shutdown in interface IStreamScanner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||