Class CredentialShareController


  • @RestController
    @RequestMapping("/credentialshare")
    public class CredentialShareController
    extends Object
    • Constructor Detail

      • CredentialShareController

        public CredentialShareController()
    • Method Detail

      • handleSubscribeEvent

        @PostMapping(path="/callback/notify",
                     consumes="application/json",
                     produces="application/json")
        public org.springframework.http.ResponseEntity<GenericResponseDTO> handleSubscribeEvent​(@RequestBody
                                                                                                EventModel eventModel)
                                                                                         throws Exception
        Websub callback for Verifiable Credential share.
        Parameters:
        eventModel -
        Returns:
        Throws:
        Exception
      • request

        @PostMapping(path="/request",
                     consumes="application/json",
                     produces="application/json")
        public org.springframework.http.ResponseEntity<Object> request​(@RequestBody
                                                                       AppCredentialRequestDTO requestDTO)
                                                                throws Exception
        Request to publish a VC: print, share or download.
        Parameters:
        requestDTO -
        Returns:
        Throws:
        Exception
      • requestStatus

        @GetMapping(path="/request/status/{requestId}",
                    produces="application/json")
        public org.springframework.http.ResponseEntity<Object> requestStatus​(@PathVariable
                                                                             String requestId)
                                                                      throws Exception
        The VC request status.
        Parameters:
        requestId -
        Returns:
        Throws:
        Exception
      • download

        @PostMapping(path="/download",
                     consumes="application/json",
                     produces="application/json")
        public org.springframework.http.ResponseEntity<CredentialDownloadResponseDTO> download​(@RequestBody
                                                                                               CredentialDownloadRequestDTO requestDTO)
                                                                                        throws Exception
        Download a received and decrypted VC. Original VC data and decrypted identity will be combined in a single response to display on the frontend.
        Parameters:
        requestDTO -
        Returns:
        Throws:
        Exception