Interface DelegatedClientNameExtractor

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DelegatedClientNameExtractor
Since:
6.6.0
  • Method Details

    • extract

      Optional<String> extract(jakarta.servlet.http.HttpServletRequest context)
      Extract client name.
      Parameters:
      context - the context
      Returns:
      the string
    • extract

      default Optional<String> extract(org.pac4j.core.context.WebContext context)
      Extract from context.
      Parameters:
      context - the context
      Returns:
      the optional
    • fromHttpRequest

      static DelegatedClientNameExtractor fromHttpRequest()
      Extract client name from http request parameter.
      Returns:
      the delegated client name extractor