Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public static final class HeadersConfigurer.HstsConfig

  1. Object
  2. HeadersConfigurer.HstsConfig
Strict-Transport-Security.

Methods

public HeadersConfigurer.HstsConfig maxAgeInSeconds(long maxAgeInSeconds)How long a browser insists on TLS; a year unless set.
public HeadersConfigurer.HstsConfig includeSubDomains(boolean includeSubDomains)
public HeadersConfigurer.HstsConfig preload(boolean preload)
public void disable()Does not send the header.

Inherited methods

Method details

maxAgeInSeconds

public HeadersConfigurer.HstsConfig maxAgeInSeconds(long maxAgeInSeconds)
How long a browser insists on TLS; a year unless set.

includeSubDomains

public HeadersConfigurer.HstsConfig includeSubDomains(boolean includeSubDomains)

preload

public HeadersConfigurer.HstsConfig preload(boolean preload)

disable

public void disable()
Does not send the header.