public static final class SignedHeadersConfig.HeadersConfig extends Object
| Modifier and Type | Method and Description |
|---|---|
static SignedHeadersConfig.HeadersConfig |
create()
Create a config with no signed headers (e.g.
|
static SignedHeadersConfig.HeadersConfig |
create(Config config)
Create a new instance from configuration.
|
static SignedHeadersConfig.HeadersConfig |
create(List<String> requiredHeaders)
Create a config with required headers only (e.g.
|
static SignedHeadersConfig.HeadersConfig |
create(List<String> requiredHeaders,
List<String> ifPresentHeaders)
Create a new instance with both required headers and headers that are signed only if present in request.
|
public static SignedHeadersConfig.HeadersConfig create()
public static SignedHeadersConfig.HeadersConfig create(List<String> requiredHeaders)
requiredHeaders - headers that must be signedpublic static SignedHeadersConfig.HeadersConfig create(List<String> requiredHeaders, List<String> ifPresentHeaders)
requiredHeaders - headers that must be signed (and signature validation or creation should fail if not signed or
present)ifPresentHeaders - headers that must be signed if present in requestpublic static SignedHeadersConfig.HeadersConfig create(Config config)
config - configuration located at header configCopyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.