public class SecureHeadersConfig extends Object
Note: This implementation has been borrowed from Aerogear Security.
Constructor and Description |
---|
SecureHeadersConfig(javax.servlet.FilterConfig config) |
Modifier and Type | Method and Description |
---|---|
String |
getFrameOptions()
Allows a secure web page from host B to declare
that its content (for example a button, links, text, etc.) must not
be displayed in a frame ( or
|
String |
getLocation()
Retrieve the Location header
|
String |
getMaxAge()
Specifies the number of seconds, after the reception of the STS header field
|
String |
getXssOptions() |
boolean |
hasFrameOptions()
Verify if "x-frame-options" is present
|
boolean |
hasLocation()
Verify if the option "Location" is present
|
boolean |
hasMaxAge()
Verify if the option "max-age" is present
|
boolean |
hasXSSOptions()
Verify if "x-xss-protection" is present
|
public SecureHeadersConfig(javax.servlet.FilterConfig config)
public String getMaxAge()
public String getLocation()
public String getFrameOptions()
public boolean hasMaxAge()
public boolean hasLocation()
public boolean hasFrameOptions()
public boolean hasXSSOptions()
public String getXssOptions()
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.