Interface HSTSHandler

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long DEFAULT_MAX_AGE  
    • Method Summary

      Static Methods 
      Modifier and Type Method Description
      static HSTSHandler create()
      Creates a new instance that does not consider the configuration for sub domains.
      static HSTSHandler create​(boolean includeSubDomains)
      Creates a new instance that shall consider the configuration for sub domains.
      static HSTSHandler create​(long maxAge, boolean includeSubDomains)
      Creates a new instance that shall consider the configuration for sub domains.
    • Method Detail

      • create

        static HSTSHandler create​(long maxAge,
                                  boolean includeSubDomains)
        Creates a new instance that shall consider the configuration for sub domains.
        Parameters:
        maxAge - max age to attribute to the header
        includeSubDomains - consider sub domains when adding the header
        Returns:
        an instance.
      • create

        static HSTSHandler create​(boolean includeSubDomains)
        Creates a new instance that shall consider the configuration for sub domains.
        Parameters:
        includeSubDomains - consider sub domains when adding the header
        Returns:
        an instance.
      • create

        static HSTSHandler create()
        Creates a new instance that does not consider the configuration for sub domains. Using the default max age.
        Returns:
        an instance.