Package oracle.pgx.config
Class StrictTransportSecurityConfigBuilder
java.lang.Object
oracle.pgx.config.StrictTransportSecurityConfigBuilder
@Generated({"common/config/src/templates/ConfigBuilder.stg","common/config/config.gradle"})
public final class StrictTransportSecurityConfigBuilder
extends Object
Builder for
StrictTransportSecurityConfig.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty StrictTransportSecurityConfigBuilderConstructs a StrictTransportSecurityConfigBuilder initialized with the values from the given mapConstructs a StrictTransportSecurityConfigBuilder initialized with the values from the given configConstructs a StrictTransportSecurityConfigBuilder initialized with the values from the given builder -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the StrictTransportSecurityConfig with aparentPathofnull.Builds the StrictTransportSecurityConfig.Builds aStrictTransportSecurityConfigin-placeclear()Clears all values from the builderPuts all values from the given map into this builder.putAll(StrictTransportSecurityConfig config) Puts all values from the given config into this buildersetIncludeSubDomains(boolean includeSubDomains) whether to apply HTTPS to all subdomainssetMaxAgeSeconds(int maxAgeSeconds) how long (in seconds) the browser should enforce HTTPSsetPreload(boolean preload) indicate whether current domain should be included in browser preload lists.toString()
-
Constructor Details
-
StrictTransportSecurityConfigBuilder
public StrictTransportSecurityConfigBuilder()Constructs an empty StrictTransportSecurityConfigBuilder -
StrictTransportSecurityConfigBuilder
Constructs a StrictTransportSecurityConfigBuilder initialized with the values from the given map- Parameters:
values- a map containing configuration values
-
StrictTransportSecurityConfigBuilder
Constructs a StrictTransportSecurityConfigBuilder initialized with the values from the given config- Parameters:
config- the configuration to take the values from
-
StrictTransportSecurityConfigBuilder
Constructs a StrictTransportSecurityConfigBuilder initialized with the values from the given builder- Parameters:
builder- the builder to take the values from
-
-
Method Details
-
buildStrictTransportSecurityConfig
public static StrictTransportSecurityConfig buildStrictTransportSecurityConfig(Consumer<StrictTransportSecurityConfigBuilder> builderSetup) Builds aStrictTransportSecurityConfigin-place- Parameters:
builderSetup- a consumer to setup a newly createdStrictTransportSecurityConfig
-
putAll
public StrictTransportSecurityConfigBuilder putAll(Map<StrictTransportSecurityConfig.Field, Object> values) Puts all values from the given map into this builder.- Parameters:
values- the values to put in the builder
-
putAll
Puts all values from the given config into this builder- Parameters:
config- the config to take the values from
-
clear
Clears all values from the builder -
build
Builds the StrictTransportSecurityConfig.- Parameters:
parentPath- if not null, resolves relative paths against this parentPath- Returns:
- an instance of StrictTransportSecurityConfig
-
build
Builds the StrictTransportSecurityConfig with aparentPathofnull.- Returns:
- An instance of StrictTransportSecurityConfig
- See Also:
-
toInputStream
- Returns:
- an
InputStreamrepresenting the config
-
getValues
- Returns:
- the raw config values
-
toString
-
setMaxAgeSeconds
how long (in seconds) the browser should enforce HTTPS -
setIncludeSubDomains
whether to apply HTTPS to all subdomains -
setPreload
indicate whether current domain should be included in browser preload lists. Requires max-age >= 31536000 and includeSubDomains to be set
-