Class RequiredHSTSPolicy

    • Constructor Detail

      • RequiredHSTSPolicy

        public RequiredHSTSPolicy()
        No args constructor for use in serialization
      • RequiredHSTSPolicy

        public RequiredHSTSPolicy​(List<String> domainPatterns,
                                  String includeSubDomainsPolicy,
                                  MaxAgePolicy maxAge,
                                  io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector,
                                  String preloadPolicy)
    • Method Detail

      • getDomainPatterns

        public List<String> getDomainPatterns()
        domainPatterns is a list of domains for which the desired HSTS annotations are required. If domainPatterns is specified and a route is created with a spec.host matching one of the domains, the route must specify the HSTS Policy components described in the matching RequiredHSTSPolicy.


        The use of wildcards is allowed like this: *.foo.com matches everything under foo.com. foo.com only matches foo.com, so to cover foo.com and everything under it, you must specify *both*.

      • setDomainPatterns

        public void setDomainPatterns​(List<String> domainPatterns)
        domainPatterns is a list of domains for which the desired HSTS annotations are required. If domainPatterns is specified and a route is created with a spec.host matching one of the domains, the route must specify the HSTS Policy components described in the matching RequiredHSTSPolicy.


        The use of wildcards is allowed like this: *.foo.com matches everything under foo.com. foo.com only matches foo.com, so to cover foo.com and everything under it, you must specify *both*.

      • getIncludeSubDomainsPolicy

        public String getIncludeSubDomainsPolicy()
        includeSubDomainsPolicy means the HSTS Policy should apply to any subdomains of the host's domain name. Thus, for the host bar.foo.com, if includeSubDomainsPolicy was set to RequireIncludeSubDomains: - the host app.bar.foo.com would inherit the HSTS Policy of bar.foo.com - the host bar.foo.com would inherit the HSTS Policy of bar.foo.com - the host foo.com would NOT inherit the HSTS Policy of bar.foo.com - the host def.foo.com would NOT inherit the HSTS Policy of bar.foo.com
      • setIncludeSubDomainsPolicy

        public void setIncludeSubDomainsPolicy​(String includeSubDomainsPolicy)
        includeSubDomainsPolicy means the HSTS Policy should apply to any subdomains of the host's domain name. Thus, for the host bar.foo.com, if includeSubDomainsPolicy was set to RequireIncludeSubDomains: - the host app.bar.foo.com would inherit the HSTS Policy of bar.foo.com - the host bar.foo.com would inherit the HSTS Policy of bar.foo.com - the host foo.com would NOT inherit the HSTS Policy of bar.foo.com - the host def.foo.com would NOT inherit the HSTS Policy of bar.foo.com
      • setMaxAge

        public void setMaxAge​(MaxAgePolicy maxAge)
      • getNamespaceSelector

        public io.fabric8.kubernetes.api.model.LabelSelector getNamespaceSelector()
      • setNamespaceSelector

        public void setNamespaceSelector​(io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector)
      • getPreloadPolicy

        public String getPreloadPolicy()
        preloadPolicy directs the client to include hosts in its host preload list so that it never needs to do an initial load to get the HSTS header (note that this is not defined in RFC 6797 and is therefore client implementation-dependent).
      • setPreloadPolicy

        public void setPreloadPolicy​(String preloadPolicy)
        preloadPolicy directs the client to include hosts in its host preload list so that it never needs to do an initial load to get the HSTS header (note that this is not defined in RFC 6797 and is therefore client implementation-dependent).
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)