[SECURITY-245] Add explanation comment

This commit is contained in:
Daniel Beck committed 2016-01-27 13:39:27 +01:00
1 parent 559566b1ac
commit 281cd6c69a
1 file changed
+1
@@ -95,6 +95,7 @@ public class DefaultCrumbIssuer extends CrumbIssuer {
if (request instanceof HttpServletRequest) {
String newCrumb = issueCrumb(request, salt);
if ((newCrumb != null) && (crumb != null)) {
// String.equals() is not constant-time, but this is
return MessageDigest.isEqual(newCrumb.getBytes(), crumb.getBytes());
}
}