Class RequiredHSTSPolicy
- java.lang.Object
-
- io.fabric8.openshift.api.model.config.v1.RequiredHSTSPolicy
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<RequiredHSTSPolicyBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class RequiredHSTSPolicy extends Object implements io.fabric8.kubernetes.api.builder.Editable<RequiredHSTSPolicyBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RequiredHSTSPolicy()No args constructor for use in serializationRequiredHSTSPolicy(List<String> domainPatterns, String includeSubDomainsPolicy, MaxAgePolicy maxAge, io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector, String preloadPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequiredHSTSPolicyBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getDomainPatterns()domainPatterns is a list of domains for which the desired HSTS annotations are required.StringgetIncludeSubDomainsPolicy()includeSubDomainsPolicy means the HSTS Policy should apply to any subdomains of the host's domain name.MaxAgePolicygetMaxAge()io.fabric8.kubernetes.api.model.LabelSelectorgetNamespaceSelector()StringgetPreloadPolicy()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).voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDomainPatterns(List<String> domainPatterns)domainPatterns is a list of domains for which the desired HSTS annotations are required.voidsetIncludeSubDomainsPolicy(String includeSubDomainsPolicy)includeSubDomainsPolicy means the HSTS Policy should apply to any subdomains of the host's domain name.voidsetMaxAge(MaxAgePolicy maxAge)voidsetNamespaceSelector(io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector)voidsetPreloadPolicy(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).RequiredHSTSPolicyBuildertoBuilder()
-
-
-
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
-
getMaxAge
public MaxAgePolicy getMaxAge()
-
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).
-
edit
public RequiredHSTSPolicyBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<RequiredHSTSPolicyBuilder>
-
toBuilder
public RequiredHSTSPolicyBuilder toBuilder()
-
-