Class ScheduleSupport
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.support.ScheduleSupport
-
@RestController @RequestMapping("/api") public class ScheduleSupport extends ObjectREST controller for starting scheduled tasks.
-
-
Constructor Summary
Constructors Constructor Description ScheduleSupport(CertExpiryScheduler certExpiryScheduler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intretrieveCertificates()POST api/schedule/retrieveCertificates: retrieve certificates.intupdateRevocationStatus()POST api/schedule/updateRevocationStatus: get revocation status of all certificates.
-
-
-
Constructor Detail
-
ScheduleSupport
public ScheduleSupport(CertExpiryScheduler certExpiryScheduler)
-
-
Method Detail
-
retrieveCertificates
@PostMapping("schedule/retrieveCertificates") @PreAuthorize("hasRole(\"ROLE_ADMIN\")") public int retrieveCertificates()POST api/schedule/retrieveCertificates: retrieve certificates.- Returns:
- the number of expiring certificates .
-
updateRevocationStatus
@PostMapping("schedule/updateRevocationStatus") @PreAuthorize("hasRole(\"ROLE_ADMIN\")") public int updateRevocationStatus()POST api/schedule/updateRevocationStatus: get revocation status of all certificates.- Returns:
- the number of expiring certificates .
-
-