Class UnauthorizedResponseHelper
- java.lang.Object
-
- jetbrains.buildServer.controllers.interceptors.auth.util.UnauthorizedResponseHelper
-
public class UnauthorizedResponseHelper extends Object
Helper class to send "401 Unauthorized" response- Since:
- 7.1
-
-
Field Summary
Fields Modifier and Type Field Description static StringWWW_AUTHENTICATE_HEADER
-
Constructor Summary
Constructors Constructor Description UnauthorizedResponseHelper(javax.servlet.http.HttpServletResponse response, boolean keepConnection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddWWWAuthenticateHeader(String headerValue)booleanhasWWWAuthenticateHeader()voidsend(javax.servlet.http.HttpServletRequest request, String reason)voidsend(javax.servlet.http.HttpServletRequest request, String reason, boolean canRedirect, String loginPageUrl)
-
-
-
Field Detail
-
WWW_AUTHENTICATE_HEADER
@NotNull public static final String WWW_AUTHENTICATE_HEADER
- See Also:
- Constant Field Values
-
-
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()
-
-