You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.header("User-Agent", userAgent)//To provide an hint to the target about the initiator of the request
1080
+
HttpRequestrequest = HttpRequest.newBuilder().uri(uri).timeout(Duration.ofSeconds(connectionTimeoutInSeconds)).method("HEAD", HttpRequest.BodyPublishers.noBody()).header("User-Agent", userAgent)//To provide an hint to the target about the initiator of the request
1084
1081
.header("Cache-Control", "no-store, max-age=0")//To prevent caching issues or abuses
@@ -1099,5 +1096,39 @@ public static boolean isPSD2StetSafeCertificateURL(String certificateUrl) {
1099
1096
returnisValid;
1100
1097
}
1101
1098
1102
-
1099
+
/**
1100
+
* Perform sequential URL decoding operations against a URL encoded data until the data is not URL encoded anymore or if the specified threshold is reached.
1101
+
*
1102
+
* @param encodedData URL encoded data.
1103
+
* @param decodingRoundThreshold Threshold above which decoding will fail.
1104
+
* @return The decoded data.
1105
+
* @throws SecurityException If the threshold is reached.
0 commit comments