Class SignedHeadersConfig.Builder
java.lang.Object
io.helidon.security.providers.httpsign.SignedHeadersConfig.Builder
- All Implemented Interfaces:
Builder<SignedHeadersConfig.Builder,
,SignedHeadersConfig> Supplier<SignedHeadersConfig>
- Enclosing class:
SignedHeadersConfig
public static final class SignedHeadersConfig.Builder
extends Object
implements Builder<SignedHeadersConfig.Builder,SignedHeadersConfig>
Fluent API builder to create
SignedHeadersConfig
instances.
Call build()
to create a new instance.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.config
(String method, SignedHeadersConfig.HeadersConfig config) Configuration of a single method (seeSecurityEnvironment.method()
to set required and "if-present" headers to be signed (or to be expected in inbound signature).Default configuration is used by methods that do not have an explicit configuration.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<SignedHeadersConfig.Builder,
SignedHeadersConfig> - Returns:
- instance of the built type
-
defaultConfig
Default configuration is used by methods that do not have an explicit configuration.Configuration is not cumulative - e.g. if you configure default to require "date" and "host" headers and method "get" to require "(request-target)", get will NOT require "date" and "host"
- Parameters:
config
- configuration of method (e.g. headers that must always be signed and headers to be signed when available in request)- Returns:
- updated builder instance
-
config
Configuration of a single method (seeSecurityEnvironment.method()
to set required and "if-present" headers to be signed (or to be expected in inbound signature).- Parameters:
method
- method name (methods are case-insensitive)config
- configuration of method- Returns:
- updated builder instance
-