Package com.jsql.util
Class CsrfUtil
java.lang.Object
com.jsql.util.CsrfUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addHeaderToken
(HttpRequest.Builder httpRequest) addQueryStringToken
(String urlInjection) void
addRequestToken
(StringBuilder httpRequest) boolean
isCsrf()
void
parseForCsrfToken
(String pageSource, Map<String, String> headers) void
setTokenCsrf
(AbstractMap.SimpleEntry<String, String> tokenCsrf)
-
Constructor Details
-
CsrfUtil
-
-
Method Details
-
parseForCsrfToken
-
addHeaderToken
-
addRequestToken
-
addQueryStringToken
-
isCsrf
public boolean isCsrf() -
getTokenCsrf
-
setTokenCsrf
-