Class UnauthorizedResponseHelper
- java.lang.Object
-
- jetbrains.buildServer.controllers.interceptors.auth.util.UnauthorizedResponseHelper
-
public class UnauthorizedResponseHelper extends java.lang.Object
Helper class to send "401 Unauthorized" response- Since:
- 7.1
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
WWW_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 void
addWWWAuthenticateHeader(java.lang.String headerValue)
boolean
hasWWWAuthenticateHeader()
void
send(javax.servlet.http.HttpServletRequest request, java.lang.String reason)
-
-
-
Field Detail
-
WWW_AUTHENTICATE_HEADER
@NotNull public static final java.lang.String WWW_AUTHENTICATE_HEADER
- See Also:
- Constant Field Values
-
-
Method Detail
-
send
public void send(@NotNull javax.servlet.http.HttpServletRequest request, @Nullable java.lang.String reason) throws java.io.IOException
- Throws:
java.io.IOException
-
addWWWAuthenticateHeader
public void addWWWAuthenticateHeader(@NotNull java.lang.String headerValue)
-
hasWWWAuthenticateHeader
public boolean hasWWWAuthenticateHeader()
-
-