fileRepositoryPath=/tmp/gss-root
#quota in bytes(10GB)
quota=10737418240
-
+#milliseconds a request's timestamp may differ from the current system time (10')
+timeSkew=600000
solrSelectUrl=http://localhost:8983/solr/select
solrUpdateUrl=http://localhost:8983/solr/update
solrUpdateRichUrl=http://localhost:8983/solr/update/rich
private static final String HMAC_SHA1 = "HmacSHA1";
/**
- * The amount of milliseconds a request's timestamp may differ
- * from the current system time.
- */
- private static final int TIME_SKEW = 600000;
-
- /**
* The serial version UID of the class.
*/
private static final long serialVersionUID = 1L;
if (logger.isDebugEnabled())
logger.debug("Time: server=" + cal.getTimeInMillis() + ", client=" + timestamp);
// Ignore the request if the timestamp is too far off.
- if (Math.abs(timestamp - cal.getTimeInMillis()) > TIME_SKEW)
+ if (Math.abs(timestamp - cal.getTimeInMillis()) > getConfiguration().getInt("timeSkew", 600000))
return false;
return true;
}