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 Detail

      • extract

        java.util.Optional<java.lang.String> extract​(javax.servlet.http.HttpServletRequest context)
        Extract client name.
        Parameters:
        context - the context
        Returns:
        the string
      • extract

        default java.util.Optional<java.lang.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