Class CertificateMonitorJobManager
- java.lang.Object
-
- de.xima.fc.certificate.ms.impl.scheduling.CertificateMonitorJobManager
-
@ApplicationScoped public class CertificateMonitorJobManager extends Object
Manages the certificate monitor jobs, including the certificate expiration monitor and the orphaned keystore cleanup job.- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
-
Constructor Summary
Constructors Constructor Description CertificateMonitorJobManager(SchedulerProvider schedulerProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CronTriggerInfoDtogetCertificateExpirationTriggerInfo()Get the cron trigger info for the certificate expiration monitor job.CronTriggerInfoDtogetOrphanedKeystoreCleanupTriggerInfo()Get the cron trigger info for the orphaned keystore cleanup job.CronTriggerInfoDtogetTriggerInfo()Deprecated, for removal: This API element is subject to removal in a future version.UsegetCertificateExpirationTriggerInfo()instead.voidupdateCertificateExpirationCronTrigger(String cronExpression)Update the cron trigger for the certificate expiration monitor job.voidupdateCronTrigger(String cronExpression)Deprecated, for removal: This API element is subject to removal in a future version.UseupdateCertificateExpirationCronTrigger(String)instead.voidupdateOrphanedKeyStoreCleanupCronTrigger(String cronExpression)Update the cron trigger for the orphaned keystore cleanup job.
-
-
-
Constructor Detail
-
CertificateMonitorJobManager
@Inject public CertificateMonitorJobManager(SchedulerProvider schedulerProvider)
-
-
Method Detail
-
getCertificateExpirationTriggerInfo
public CronTriggerInfoDto getCertificateExpirationTriggerInfo() throws FcCertificateManagementException
Get the cron trigger info for the certificate expiration monitor job.- Returns:
- the cron trigger info
- Throws:
FcCertificateManagementException- if the trigger info could not be retrieved- Since:
- 8.6.0
-
getOrphanedKeystoreCleanupTriggerInfo
public CronTriggerInfoDto getOrphanedKeystoreCleanupTriggerInfo() throws FcCertificateManagementException
Get the cron trigger info for the orphaned keystore cleanup job.- Returns:
- the cron trigger info
- Throws:
FcCertificateManagementException- if the trigger info could not be retrieved- Since:
- 8.6.0
-
getTriggerInfo
@Deprecated(forRemoval=true) public CronTriggerInfoDto getTriggerInfo() throws FcCertificateManagementException
Deprecated, for removal: This API element is subject to removal in a future version.UsegetCertificateExpirationTriggerInfo()instead.Get the cron trigger info for the orphaned keystore cleanup job.- Returns:
- the cron trigger info
- Throws:
FcCertificateManagementException- if the trigger info could not be retrieved
-
updateCertificateExpirationCronTrigger
public void updateCertificateExpirationCronTrigger(String cronExpression) throws FcCertificateManagementException
Update the cron trigger for the certificate expiration monitor job.- Parameters:
cronExpression- the new cron expression- Throws:
FcCertificateManagementException- if the trigger could not be updated- Since:
- 8.6.0
-
updateCronTrigger
@Deprecated(forRemoval=true) public void updateCronTrigger(String cronExpression) throws FcCertificateManagementException
Deprecated, for removal: This API element is subject to removal in a future version.UseupdateCertificateExpirationCronTrigger(String)instead.Update the cron trigger for the certificate expiration monitor job.- Parameters:
cronExpression- the new cron expression- Throws:
FcCertificateManagementException- if the trigger could not be updated
-
updateOrphanedKeyStoreCleanupCronTrigger
public void updateOrphanedKeyStoreCleanupCronTrigger(String cronExpression) throws FcCertificateManagementException
Update the cron trigger for the orphaned keystore cleanup job.- Parameters:
cronExpression- the new cron expression- Throws:
FcCertificateManagementException- if the trigger could not be updated- Since:
- 8.6.0
-
-