Package io.helidon.webserver.security
Class SecurityFeatureConfig.BuilderBase<BUILDER extends SecurityFeatureConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends SecurityFeatureConfig>
java.lang.Object
io.helidon.webserver.security.SecurityFeatureConfig.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER
- type of the builder extending this abstract builderPROTOTYPE
- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,
,PROTOTYPE> Prototype.ConfiguredBuilder<BUILDER,
PROTOTYPE>
- Direct Known Subclasses:
SecurityFeatureConfig.Builder
- Enclosing interface:
SecurityFeatureConfig
public abstract static class SecurityFeatureConfig.BuilderBase<BUILDER extends SecurityFeatureConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends SecurityFeatureConfig>
extends Object
implements Prototype.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
SecurityFeature
.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddPath
(PathsConfig path) Configuration for webserver paths.addPath
(Consumer<PathsConfig.Builder> consumer) Configuration for webserver paths.addPaths
(List<? extends PathsConfig> paths) Configuration for webserver paths.config()
If this instance was configured, this would be the config instance used.Update builder from configuration (node of this type).defaults()
The default security handler.defaults
(SecurityHandler defaults) The default security handler.defaults
(SecurityHandlerConfig defaultsConfig) The default security handler.defaults
(Consumer<SecurityHandlerConfig.Builder> consumer) The default security handler.defaults
(Supplier<? extends SecurityHandler> supplier) The default security handler.from
(SecurityFeatureConfig prototype) Update this builder from an existing prototype instance.from
(SecurityFeatureConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.name()
Name of this instance.Name of this instance.paths()
Configuration for webserver paths.paths
(List<? extends PathsConfig> paths) Configuration for webserver paths.protected void
Handles providers and decorators.security()
Security associated with this feature.Security associated with this feature.security
(Consumer<Security.Builder> consumer) Security associated with this feature.Security associated with this feature.toString()
protected void
Validates required properties.double
weight()
Weight of the security feature.weight
(double weight) Weight of the security feature.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
Methods inherited from interface io.helidon.builder.api.Prototype.ConfiguredBuilder
discoverService, discoverServices
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype
- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder
- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
config
in interfacePrototype.ConfiguredBuilder<BUILDER extends SecurityFeatureConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends SecurityFeatureConfig> - Parameters:
config
- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
weight
Weight of the security feature. Value is: 800.0.- Parameters:
weight
- weight of the feature- Returns:
- updated builder instance
- See Also:
-
defaults
The default security handler.- Parameters:
defaults
- security handler defaults- Returns:
- updated builder instance
- See Also:
-
defaults
The default security handler.- Parameters:
defaultsConfig
- security handler defaults- Returns:
- updated builder instance
- See Also:
-
defaults
The default security handler.- Parameters:
consumer
- consumer of builder for security handler defaults- Returns:
- updated builder instance
- See Also:
-
defaults
The default security handler.- Parameters:
supplier
- supplier of security handler defaults- Returns:
- updated builder instance
- See Also:
-
paths
Configuration for webserver paths.- Parameters:
paths
- path configuration- Returns:
- updated builder instance
- See Also:
-
addPaths
Configuration for webserver paths.- Parameters:
paths
- path configuration- Returns:
- updated builder instance
- See Also:
-
addPath
Configuration for webserver paths.- Parameters:
path
- path configuration- Returns:
- updated builder instance
- See Also:
-
addPath
Configuration for webserver paths.- Parameters:
consumer
- path configuration- Returns:
- updated builder instance
- See Also:
-
security
Security associated with this feature. If not specified here, the feature uses security registered withContexts.globalContext()
, if not found, it creates a new instance from root of configuration (usingsecurity
key).This configuration allows usage of a different security instance for a specific security feature setup.
- Parameters:
security
- security instance to be used to handle security in this feature configuration- Returns:
- updated builder instance
- See Also:
-
security
Security associated with this feature. If not specified here, the feature uses security registered withContexts.globalContext()
, if not found, it creates a new instance from root of configuration (usingsecurity
key).This configuration allows usage of a different security instance for a specific security feature setup.
- Parameters:
consumer
- consumer of builder for security instance to be used to handle security in this feature configuration- Returns:
- updated builder instance
- See Also:
-
security
Security associated with this feature. If not specified here, the feature uses security registered withContexts.globalContext()
, if not found, it creates a new instance from root of configuration (usingsecurity
key).This configuration allows usage of a different security instance for a specific security feature setup.
- Parameters:
supplier
- supplier of security instance to be used to handle security in this feature configuration- Returns:
- updated builder instance
- See Also:
-
name
Name of this instance.- Parameters:
name
- instance name- Returns:
- updated builder instance
- See Also:
-
weight
public double weight()Weight of the security feature. Value is: 800.0.- Returns:
- the weight
-
defaults
The default security handler.- Returns:
- the defaults
-
paths
Configuration for webserver paths.- Returns:
- the paths
-
security
Security associated with this feature. If not specified here, the feature uses security registered withContexts.globalContext()
, if not found, it creates a new instance from root of configuration (usingsecurity
key).This configuration allows usage of a different security instance for a specific security feature setup.
- Returns:
- the security
-
name
Name of this instance.- Returns:
- the name
-
config
If this instance was configured, this would be the config instance used.- Returns:
- config node used to configure this builder, or empty if not configured
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-