org.springframework.security.web.header.writers
Class XContentTypeOptionsHeaderWriter

java.lang.Object
  extended by org.springframework.security.web.header.writers.StaticHeadersWriter
      extended by org.springframework.security.web.header.writers.XContentTypeOptionsHeaderWriter
All Implemented Interfaces:
HeaderWriter

public final class XContentTypeOptionsHeaderWriter
extends StaticHeadersWriter

A StaticHeadersWriter that inserts headers to prevent content sniffing. Specifically the following headers are set:

Since:
3.2

Constructor Summary
XContentTypeOptionsHeaderWriter()
          Creates a new instance
 
Method Summary
 
Methods inherited from class org.springframework.security.web.header.writers.StaticHeadersWriter
toString, writeHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XContentTypeOptionsHeaderWriter

public XContentTypeOptionsHeaderWriter()
Creates a new instance