String token = stateScope.getStateToken(stateId);
return requestSuffix.equals(token);
}
IPage currentPage = session.getPage(pageId);
if (currentPage == null) {
if (log.isErrorEnabled()) {
log.error("Page with id [" + pageId + "] not found in session.");
}
throw new HDIVException(HDIVErrorCodes.PAGE_ID_INCORRECT);
}
return currentPage.getRandomToken(restoredState.getMethod()).equals(requestSuffix);
} catch (IndexOutOfBoundsException e) {
String errorMessage = HDIVUtil.getMessage("validation.error", e.getMessage());
if (log.isErrorEnabled()) {
log.error(errorMessage);