Class HttpBasicOutboundConfig
- java.lang.Object
-
- io.helidon.security.providers.httpauth.HttpBasicOutboundConfig
-
public class HttpBasicOutboundConfig extends Object
Security provider configuration for outbound.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpBasicOutboundConfig.Builder
Fluent API builder forHttpBasicOutboundConfig
.
-
Field Summary
Fields Modifier and Type Field Description static TokenHandler
DEFAULT_TOKEN_HANDLER
Default token handler for HTTP basic authentication - usesAuthorization
header andbasic
prefix.static char[]
EMPTY_PASSWORD
An empty char array used for empty passwords.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpBasicOutboundConfig.Builder
builder()
Fluent API builder to create basic outbound configuration.static HttpBasicOutboundConfig
create()
Create a default basic outbound configuration.static HttpBasicOutboundConfig
create(Config config)
Create basic outbound configuration from config.static HttpBasicOutboundConfig
create(OutboundTarget outboundTarget)
Create basic outbound configuration from an outbound target.static HttpBasicOutboundConfig
create(String user, String password)
Create basic outbound configuration for an explicit user and password.
-
-
-
Field Detail
-
EMPTY_PASSWORD
public static final char[] EMPTY_PASSWORD
An empty char array used for empty passwords.
-
DEFAULT_TOKEN_HANDLER
public static final TokenHandler DEFAULT_TOKEN_HANDLER
Default token handler for HTTP basic authentication - usesAuthorization
header andbasic
prefix.
-
-
Method Detail
-
builder
public static HttpBasicOutboundConfig.Builder builder()
Fluent API builder to create basic outbound configuration.- Returns:
- a new builder
-
create
public static HttpBasicOutboundConfig create()
Create a default basic outbound configuration. This configuration is to propagate current identity.- Returns:
- a new configuration
-
create
public static HttpBasicOutboundConfig create(Config config)
Create basic outbound configuration from config.- Parameters:
config
- configuration for outbound config- Returns:
- a new configuration
-
create
public static HttpBasicOutboundConfig create(String user, String password)
Create basic outbound configuration for an explicit user and password.- Parameters:
user
- usernamepassword
- password- Returns:
- a new configuration
-
create
public static HttpBasicOutboundConfig create(OutboundTarget outboundTarget)
Create basic outbound configuration from an outbound target.- Parameters:
outboundTarget
- outbound target- Returns:
- a new basic outbound config from custom object, configuration, or the default one
-
-