Class SignedHeadersConfig.HeadersConfig
java.lang.Object
io.helidon.security.providers.httpsign.SignedHeadersConfig.HeadersConfig
- Enclosing class:
- SignedHeadersConfig
Configuration of headers to be signed.
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
Create a config with no signed headers (e.g.Create a new instance from configuration.Create a config with required headers only (e.g.Create a new instance with both required headers and headers that are signed only if present in request.
-
Method Details
-
create
Create a config with no signed headers (e.g. signatures disabled)- Returns:
- instance with no required headers
-
create
Create a config with required headers only (e.g. no "if-present" headers).- Parameters:
requiredHeaders
- headers that must be signed- Returns:
- instance with required headers
-
create
public 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.- Parameters:
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 request- Returns:
- instance with required and "if-present" headers
-
create
Create a new instance from configuration.- Parameters:
config
- configuration located at header config- Returns:
- instance configured from config
-