use of org.xdi.oxauth.service.cdi.event.KeyGenerationEvent in project oxAuth by GluuFederation.
the class KeyGeneratorTimer method initTimer.
public void initTimer() {
log.debug("Initializing Key Generator Timer");
this.isActive = new AtomicBoolean(false);
int interval = appConfiguration.getKeyRegenerationInterval();
if (interval <= 0) {
interval = DEFAULT_INTERVAL;
}
interval = interval * 3600;
timerEvent.fire(new TimerEvent(new TimerSchedule(interval, interval), new KeyGenerationEvent(), Scheduled.Literal.INSTANCE));
}
Aggregations