/** * @param stsIncludeSubDomains If true, a include subdomain property is sent with any Strict-Transport-Security header */ public void setStsIncludeSubDomains(boolean stsIncludeSubDomains) { _stsIncludeSubDomains = stsIncludeSubDomains; formatSTS(); }
/** * Set the Strict-Transport-Security max age. * @param stsMaxAgeSeconds The max age in seconds for a Strict-Transport-Security response header. If set less than zero then no header is sent. */ public void setStsMaxAge(long stsMaxAgeSeconds) { _stsMaxAge = stsMaxAgeSeconds; formatSTS(); }
/** * @param stsIncludeSubDomains If true, a include subdomain property is sent with any Strict-Transport-Security header */ public void setStsIncludeSubDomains(boolean stsIncludeSubDomains) { _stsIncludeSubDomains = stsIncludeSubDomains; formatSTS(); }
/** * Set the Strict-Transport-Security max age. * @param stsMaxAgeSeconds The max age in seconds for a Strict-Transport-Security response header. If set less than zero then no header is sent. */ public void setStsMaxAge(long stsMaxAgeSeconds) { _stsMaxAge = stsMaxAgeSeconds; formatSTS(); }
/** * Convenience method to call {@link #setStsMaxAge(long)} * @param period The period in units * @param units The {@link TimeUnit} of the period */ public void setStsMaxAge(long period,TimeUnit units) { _stsMaxAge = units.toSeconds(period); formatSTS(); }
/** * Convenience method to call {@link #setStsMaxAge(long)} * @param period The period in units * @param units The {@link TimeUnit} of the period */ public void setStsMaxAge(long period,TimeUnit units) { _stsMaxAge = units.toSeconds(period); formatSTS(); }
/** * @param sniHostCheck True if the SNI Host name must match. * @param stsMaxAgeSeconds The max age in seconds for a Strict-Transport-Security response header. If set less than zero then no header is sent. * @param stsIncludeSubdomains If true, a include subdomain property is sent with any Strict-Transport-Security header */ public SecureRequestCustomizer( @Name("sniHostCheck")boolean sniHostCheck, @Name("stsMaxAgeSeconds")long stsMaxAgeSeconds, @Name("stsIncludeSubdomains")boolean stsIncludeSubdomains) { _sniHostCheck=sniHostCheck; _stsMaxAge=stsMaxAgeSeconds; _stsIncludeSubDomains=stsIncludeSubdomains; formatSTS(); }
/** * @param sniHostCheck True if the SNI Host name must match. * @param stsMaxAgeSeconds The max age in seconds for a Strict-Transport-Security response header. If set less than zero then no header is sent. * @param stsIncludeSubdomains If true, a include subdomain property is sent with any Strict-Transport-Security header */ public SecureRequestCustomizer( @Name("sniHostCheck")boolean sniHostCheck, @Name("stsMaxAgeSeconds")long stsMaxAgeSeconds, @Name("stsIncludeSubdomains")boolean stsIncludeSubdomains) { _sniHostCheck=sniHostCheck; _stsMaxAge=stsMaxAgeSeconds; _stsIncludeSubDomains=stsIncludeSubdomains; formatSTS(); }