verification.setIdentifierName(v.identifierName());
if (v.identifierValue() != null && !v.identifierValue().trim().equals(""))
verification.setIdentifierValue(v.identifierValue());
verification.setIgnoreExpiration(v.ignoreExpiration());
After staleAfter = v.stale();
if (staleAfter.seconds() > 0
|| staleAfter.minutes() > 0
|| staleAfter.hours() > 0
|| staleAfter.days() > 0
|| staleAfter.months() > 0
|| staleAfter.years() > 0)
{
verification.setStaleCheck(true);
verification.setStaleSeconds(staleAfter.seconds());
verification.setStaleMinutes(staleAfter.minutes());
verification.setStaleHours(staleAfter.hours());
verification.setStaleDays(staleAfter.days());
verification.setStaleMonths(staleAfter.months());
verification.setStaleYears(staleAfter.years());
}
verification.setBodyHashRequired(v.bodyHashRequired());
return verification;
}