Class SecureHeadersConfig


  • public class SecureHeadersConfig
    extends Object
    HTTP headers related to security For example: HSTS and Clickjacking mitigation support

    Note: This implementation has been borrowed from Aerogear Security.

    • Constructor Detail

      • SecureHeadersConfig

        public SecureHeadersConfig​(javax.servlet.FilterConfig config)
    • Method Detail

      • getMaxAge

        public String getMaxAge()
        Specifies the number of seconds, after the reception of the STS header field
        Returns:
        max-age directive
        See Also:
        The max-age Directive
      • getLocation

        public String getLocation()
        Retrieve the Location header
        Returns:
        Location header field value
        See Also:
        HTTP Request Type
      • getFrameOptions

        public 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