Class SignedHeadersConfig.Builder
- java.lang.Object
-
- io.helidon.security.providers.httpsign.SignedHeadersConfig.Builder
-
- All Implemented Interfaces:
Builder<SignedHeadersConfig>
,Supplier<SignedHeadersConfig>
- Enclosing class:
- SignedHeadersConfig
public static final class SignedHeadersConfig.Builder extends Object implements Builder<SignedHeadersConfig>
Fluent API builder to createSignedHeadersConfig
instances. Callbuild()
to create a new instance.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SignedHeadersConfig
build()
Build the instance from this builder.SignedHeadersConfig.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).SignedHeadersConfig.Builder
defaultConfig(SignedHeadersConfig.HeadersConfig config)
Default configuration is used by methods that do not have an explicit configuration.
-
-
-
Method Detail
-
build
public SignedHeadersConfig build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<SignedHeadersConfig>
- Returns:
- instance of the built type
-
defaultConfig
public SignedHeadersConfig.Builder defaultConfig(SignedHeadersConfig.HeadersConfig config)
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
public SignedHeadersConfig.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).- Parameters:
method
- method name (methods are case-insensitive)config
- configuration of method- Returns:
- updated builder instance
-
-