jetbrains.buildServer.controllers.interceptors.auth.util
Class UnauthorizedResponseHelper

java.lang.Object
  extended by 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
static java.lang.String WWW_AUTHENTICATE_HEADER
           
 
Constructor Summary
UnauthorizedResponseHelper(javax.servlet.http.HttpServletResponse response, boolean keepConnection)
           
 
Method Summary
 void addWWWAuthenticateHeader(java.lang.String headerValue)
           
 boolean hasWWWAuthenticateHeader()
           
 void send(javax.servlet.http.HttpServletRequest request, java.lang.String reason)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WWW_AUTHENTICATE_HEADER

@NotNull
public static final java.lang.String WWW_AUTHENTICATE_HEADER
See Also:
Constant Field Values
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
                 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()