public class SignedHeadersConfig
extends java.lang.Object
Example for configuration based approach:
sign-headers: [
# request may sign headers not specified here - only specify the ones that MUST be signed
{
# if method is not defined, then this is the default config
# MUST be present and signed
always = ["date"]
}
{
method = "get"
# MUST be present and signed
always = ["date", "(request-target)", "host"]
# MUST be signed IF present
if-present = ["authorization"]
}
]
| Modifier and Type | Class and Description |
|---|---|
static class |
SignedHeadersConfig.Builder
Fluent API builder to create
SignedHeadersConfig instances. |
static class |
SignedHeadersConfig.HeadersConfig
Configuration of headers to be signed.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REQUEST_TARGET
Special header "(request-target)" is used for method and path combination.
|
| Modifier and Type | Method and Description |
|---|---|
static SignedHeadersConfig.Builder |
builder()
Builder to create a new instance.
|
static SignedHeadersConfig |
fromConfig(Config config)
Load header configuration from config.
|
public static final java.lang.String REQUEST_TARGET
public static SignedHeadersConfig fromConfig(Config config)
config - config instance, expecting object array as childrenpublic static SignedHeadersConfig.Builder builder()
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.