java.lang.Object
io.helidon.security.providers.httpauth.HttpBasicOutboundConfig

public class HttpBasicOutboundConfig extends Object
Security provider configuration for outbound.
  • Field Details

    • 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 - uses Authorization header and basic prefix.
  • Method Details

    • 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 - username
      password - 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