Interface PathsConfig

All Superinterfaces:
Prototype.Api
All Known Implementing Classes:
PathsConfig.BuilderBase.PathsConfigImpl

public interface PathsConfig extends Prototype.Api
Configuration of a single path security setup.
See Also:
  • Method Details

    • builder

      static PathsConfig.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      static PathsConfig.Builder builder(PathsConfig instance)
      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static PathsConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      @Deprecated static PathsConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • methods

      List<Method> methods()
      HTTP methods to match when applying this configured path.
      Returns:
      list of methods to secure
    • path

      String path()
      Path to secure. Uses the same rules as Helidon WebServer.
      Returns:
      path to secure
    • sockets

      List<String> sockets()
      Named listeners that should be secured, defaults to the default listener.
      Returns:
      sockets to secure
    • handler

      SecurityHandler handler()
      Security handler configuration for this protected path.
      Returns:
      security handler