Package jetbrains.buildServer.web
Class CsrfCheck.CheckResult
- java.lang.Object
-
- jetbrains.buildServer.web.CsrfCheck.CheckResult
-
- Enclosing interface:
- CsrfCheck
public static class CsrfCheck.CheckResult extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDetailsMessage()
void
handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
boolean
isSafe()
boolean
isUnsafe()
static CsrfCheck.CheckResult
safe()
boolean
shouldHandleResponse()
static CsrfCheck.CheckResult
unsafe(java.lang.String details)
static CsrfCheck.CheckResult
unsafeHandling(java.lang.String details, CsrfCheck.Handler handler)
Creates result that will handle the request and response itself (is no other checks report the request as sfe)
-
-
-
Method Detail
-
safe
public static CsrfCheck.CheckResult safe()
-
unsafe
public static CsrfCheck.CheckResult unsafe(@NotNull java.lang.String details)
-
unsafeHandling
public static CsrfCheck.CheckResult unsafeHandling(@NotNull java.lang.String details, @NotNull CsrfCheck.Handler handler)
Creates result that will handle the request and response itself (is no other checks report the request as sfe)
-
isSafe
public boolean isSafe()
-
isUnsafe
public boolean isUnsafe()
-
getDetailsMessage
@NotNull public java.lang.String getDetailsMessage()
-
shouldHandleResponse
public boolean shouldHandleResponse()
-
handle
public void handle(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull javax.servlet.http.HttpServletResponse response) throws java.io.IOException
- Throws:
java.io.IOException
-
-