Class StrictTransportProtectionHeaderWriter

  • All Implemented Interfaces:
    org.springframework.security.web.header.HeaderWriter

    public class StrictTransportProtectionHeaderWriter
    extends AbstractSecurityHeaderWriter
    Adds the Strict-Transport-Security header to the HTTP response based on the current security configuration.
    Since:
    10.0
    Author:
    Petru Galanton
    • Constructor Detail

      • StrictTransportProtectionHeaderWriter

        public StrictTransportProtectionHeaderWriter​(SecurityConfigProperties config)
    • Method Detail

      • writeHeaders

        public void writeHeaders​(javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response)