Package io.helidon.webserver.security
Interface SecurityFeatureConfig
- All Superinterfaces:
Prototype.Api
,Prototype.Factory<SecurityFeature>
- All Known Implementing Classes:
SecurityFeatureConfig.BuilderBase.SecurityFeatureConfigImpl
Configuration of security feature fow webserver.
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Fluent API builder forSecurityFeature
.static class
SecurityFeatureConfig.BuilderBase<BUILDER extends SecurityFeatureConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends SecurityFeatureConfig> Fluent API builder base forSecurityFeature
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a new fluent API builder to customize configuration.builder
(SecurityFeatureConfig instance) Create a new fluent API builder from an existing instance.static SecurityFeatureConfig
create()
Create a new instance with default values.static SecurityFeatureConfig
Create a new instance from configuration.defaults()
The default security handler.name()
Name of this instance.paths()
Configuration for webserver paths.security()
Security associated with this feature.double
weight()
Weight of the security feature.Methods inherited from interface io.helidon.builder.api.Prototype.Factory
build
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
weight
double weight()Weight of the security feature. Value is: 800.0.- Returns:
- weight of the feature
-
defaults
SecurityHandler defaults()The default security handler.- Returns:
- security handler defaults
-
paths
List<PathsConfig> paths()Configuration for webserver paths.- Returns:
- path configuration
-
security
Security 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:
- security instance to be used to handle security in this feature configuration
-
name
String name()Name of this instance.- Returns:
- instance name
-