Class UnauthorizedResponseHelper


  • public class UnauthorizedResponseHelper
    extends Object
    Helper class to send "401 Unauthorized" response
    Since:
    7.1
    • Constructor Detail

      • UnauthorizedResponseHelper

        public UnauthorizedResponseHelper​(@NotNull
                                          javax.servlet.http.HttpServletResponse response,
                                          boolean keepConnection)
    • Method Detail

      • send

        public void send​(@NotNull
                         javax.servlet.http.HttpServletRequest request,
                         @Nullable
                         String reason)
                  throws IOException
        Throws:
        IOException
      • send

        public void send​(@NotNull
                         javax.servlet.http.HttpServletRequest request,
                         @Nullable
                         String reason,
                         boolean canRedirect,
                         @Nullable
                         String loginPageUrl)
                  throws IOException
        Throws:
        IOException
      • addWWWAuthenticateHeader

        public void addWWWAuthenticateHeader​(@NotNull
                                             String headerValue)
      • hasWWWAuthenticateHeader

        public boolean hasWWWAuthenticateHeader()