Package de.trustable.ca3s.core.schedule
Class CertExpiryScheduler
- java.lang.Object
-
- de.trustable.ca3s.core.schedule.CertExpiryScheduler
-
@Component @Transactional(propagation=REQUIRES_NEW) public class CertExpiryScheduler extends Object
- Author:
- kuehn
-
-
Constructor Summary
Constructors Constructor Description CertExpiryScheduler(int maxRecordsPerTransaction, CertificateRepository certificateRepo, CertificateUtil certUtil, AuditService auditService, CRLUtil crlUtil, PreferenceUtil preferenceUtil, NotificationService notificationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intnotifyRAOfficerHolderOnExpiry()voidretrieveCertificates()voidupdateRevocationStatus()
-
-
-
Constructor Detail
-
CertExpiryScheduler
public CertExpiryScheduler(@Value("${ca3s.batch.maxRecordsPerTransaction:1000}") int maxRecordsPerTransaction, CertificateRepository certificateRepo, CertificateUtil certUtil, AuditService auditService, CRLUtil crlUtil, PreferenceUtil preferenceUtil, NotificationService notificationService)
-
-
Method Detail
-
retrieveCertificates
@Scheduled(fixedRateString="${ca3s.schedule.rate.certRetrieval:3600000}") public void retrieveCertificates()
-
updateRevocationStatus
@Scheduled(fixedRateString="${ca3s.schedule.rate.revocationCheck:3600000}") public void updateRevocationStatus()
-
notifyRAOfficerHolderOnExpiry
@Scheduled(cron="${ca3s.schedule.cron.expiryNotificationCron:0 15 2 * * ?}") public int notifyRAOfficerHolderOnExpiry()- Returns:
- number of expiring certificates
-
-