Interface HstsFeatureConfig

All Superinterfaces:
Prototype.Api, Prototype.Factory<HstsFeature>
All Known Implementing Classes:
HstsFeatureConfig.BuilderBase.HstsFeatureConfigImpl

public interface HstsFeatureConfig extends Prototype.Api
Configuration of the HSTS feature.
See Also:
  • Method Details

    • builder

      static HstsFeatureConfig.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      static HstsFeatureConfig.Builder builder(HstsFeatureConfig instance)
      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static HstsFeatureConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      static HstsFeatureConfig create()
      Create a new instance with default values.
      Returns:
      a new instance
    • weight

      double weight()
      Weight of the HSTS feature.
      Returns:
      weight of the feature
    • sockets

      Set<String> sockets()
      List of sockets to register this feature on. If empty, it is registered on all sockets.
      Returns:
      socket names to register on, defaults to empty (all available sockets)
    • name

      String name()
      Name of this instance.
      Returns:
      instance name
    • enabled

      boolean enabled()
      Whether this feature is enabled.
      Returns:
      whether enabled
    • maxAge

      Duration maxAge()
      Max age of the HSTS policy.
      Returns:
      max age
    • includeSubDomains

      boolean includeSubDomains()
      Whether the policy should apply to subdomains.
      Returns:
      whether subdomains are included
    • preload

      boolean preload()
      Whether the policy should include the non-standard preload token used by browser preload lists.
      Returns:
      whether preload token is enabled