Class HttpHeaderPrincipalProvider

    • Method Detail

      • setHeaderName

        public void setHeaderName​(String headerName)
        Parameters:
        headerName - The name of the header from which to extract principals
      • setSeparator

        public void setSeparator​(String separator)
        Parameters:
        separator - The string by which to split header values
      • getPrincipals

        public Set<PrincipalgetPrincipals​(javax.servlet.http.HttpServletRequest request)
        Description copied from interface: PrincipalProvider
        Extract principals from the provided HttpServletRequest.

        If no principals can be extracted, implementations of this method should return the empty set rather than null.

        Parameters:
        request - the request
        Returns:
        a set of security principals
      • init

        public void init​(javax.servlet.FilterConfig filterConfig)
        Specified by:
        init in interface javax.servlet.Filter
      • doFilter

        public void doFilter​(javax.servlet.ServletRequest request,
                             javax.servlet.ServletResponse response,
                             javax.servlet.FilterChain chain)
                      throws IOException,
                             javax.servlet.ServletException
        Specified by:
        doFilter in interface javax.servlet.Filter
        Throws:
        IOException
        javax.servlet.ServletException
      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Filter