Class CertificateController

java.lang.Object
org.bh_foundation.e_sign.controllers.CertificateController

@RestController @RequestMapping("/api/certificate") public class CertificateController extends Object
  • Constructor Details

    • CertificateController

      public CertificateController(CertificateService certificateService)
  • Method Details

    • getAll

      @GetMapping("/get") public org.springframework.http.ResponseEntity<?> getAll()
    • getLast

      @GetMapping("/get-last") public org.springframework.http.ResponseEntity<?> getLast()
    • store

      @PostMapping("/store") public org.springframework.http.ResponseEntity<?> store(@RequestParam Integer expiration, @RequestParam String passphrase) throws Exception
      Throws:
      Exception
    • revoke

      @DeleteMapping("/{serial}/revoke") public org.springframework.http.ResponseEntity<?> revoke(@PathVariable String serial, @RequestParam String passphrase)