Class ContainerRolesPrincipalProvider

    • Method Detail

      • setRoleNames

        public void setRoleNames​(Set<String> roleNames)
        Sets the role names which have been configured in the repo.xml file.
        Parameters:
        roleNames - The names of container roles that should be recognized as principals
      • 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