_confirmationListeners.removeAll(Arrays.asList(listener));
}
@Override
public String confirm(String key) throws ConfirmationException {
Notification notification = _notificationDAO.getByConfirmationKey(key);
if (notification == null) {
return null;
}
if (System.currentTimeMillis() - notification.getDate().getTime() > _confirmationMaxAgeMs) {
return null;
}
for (IConfirmationListener l : _confirmationListeners) {
String redirect = l.confirm(notification);