Package jetbrains.buildServer.web
Interface CsrfCheck
- 
- All Superinterfaces:
 Loggable,ServerExtension,TeamCityExtension
public interface CsrfCheck extends ServerExtension, Loggable
Allows to add an extra check at the point when CSRF verification is made. Allows to pass some specific HTTP requests even if a usual CSRF check would not allow it.- Since:
 - 2018.1 (19/04/2017)
 - Author:
 - kir
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCsrfCheck.CheckResultstatic interfaceCsrfCheck.Handler 
- 
Field Summary
Fields Modifier and Type Field Description static Set<String>ACTION_METHODSstatic CsrfCheck.CheckResultUNKNOWN 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CsrfCheck.CheckResultisSafe(javax.servlet.http.HttpServletRequest request)Check the request for access safety. 
 - 
 
- 
- 
Field Detail
- 
UNKNOWN
static final CsrfCheck.CheckResult UNKNOWN
 
 - 
 
- 
Method Detail
- 
isSafe
CsrfCheck.CheckResult isSafe(@NotNull javax.servlet.http.HttpServletRequest request)
Check the request for access safety. By default, the request is considered unsafe. ReturnCsrfCheck.CheckResult.safe()when the request is possibly safe (and other checks should be made, for a possibleCsrfCheck.CheckResult.unsafe(String)return value);CsrfCheck.CheckResult.unsafe(String)when the request is definitely unsafe, no further checks is madeUNKNOWNwhen the check can say nothing about such a request
 
 - 
 
 -