public static class SignedHeadersConfig.Builder extends java.lang.Object implements Builder<SignedHeadersConfig>
SignedHeadersConfig instances.
Call build() to create a new instance.| Modifier and Type | Method and Description |
|---|---|
SignedHeadersConfig |
build()
Build the instance from this builder.
|
SignedHeadersConfig.Builder |
config(java.lang.String method,
SignedHeadersConfig.HeadersConfig config)
Configuration of a single method (see
SecurityEnvironment.getMethod() 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.
|
public SignedHeadersConfig build()
Builderbuild in interface Builder<SignedHeadersConfig>public SignedHeadersConfig.Builder defaultConfig(SignedHeadersConfig.HeadersConfig config)
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"
config - configuration of method (e.g. headers that must always be signed and headers
to be signed when available in request)public SignedHeadersConfig.Builder config(java.lang.String method, SignedHeadersConfig.HeadersConfig config)
SecurityEnvironment.getMethod() to set required and
"if-present" headers to be signed (or to be expected in inbound signature).method - method name (methods are case-insensitive)config - configuration of methodCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.