Class CredentialIssueanceCallbackController


  • @RestController
    public class CredentialIssueanceCallbackController
    extends Object
    The CredentialIssueanceCallbackController used to handle the notification events posted by ID Repo module.
    Author:
    Loganathan Sekar
    • Constructor Detail

      • CredentialIssueanceCallbackController

        public CredentialIssueanceCallbackController()
    • Method Detail

      • initBinder

        @InitBinder
        public void initBinder​(org.springframework.web.bind.WebDataBinder binder)
        Inits the binder.
        Parameters:
        binder - the binder
      • handleCredentialIssuedEvent

        @PostMapping(path="/callback/idchange/credential_issued/{partnerId}",
                     consumes="application/json",
                     produces="application/json")
        public io.mosip.kernel.core.http.ResponseWrapper<?> handleCredentialIssuedEvent​(@PathVariable("partnerId")
                                                                                        String partnerId,
                                                                                        @Validated @RequestBody
                                                                                        io.mosip.kernel.core.websub.model.EventModel eventModel,
                                                                                        org.springframework.validation.Errors e)
                                                                                 throws io.mosip.authentication.core.exception.IdAuthenticationBusinessException
        Handle events end point.
        Parameters:
        notificationEventsDto - the notification events dto
        e - the e
        Returns:
        the response entity
        Throws:
        io.mosip.authentication.core.exception.IdAuthenticationBusinessException - the id authentication business exception
      • handleRemoveIdEvent

        @PostMapping(path="/callback/idchange/remove_id/{partnerId}",
                     consumes="application/json",
                     produces="application/json")
        public io.mosip.kernel.core.http.ResponseWrapper<?> handleRemoveIdEvent​(@PathVariable("partnerId")
                                                                                String partnerId,
                                                                                @Validated @RequestBody
                                                                                io.mosip.kernel.core.websub.model.EventModel eventModel,
                                                                                org.springframework.validation.Errors e)
                                                                         throws io.mosip.authentication.core.exception.IdAuthenticationBusinessException
        Handle events end point.
        Parameters:
        notificationEventsDto - the notification events dto
        e - the e
        Returns:
        the response entity
        Throws:
        io.mosip.authentication.core.exception.IdAuthenticationBusinessException - the id authentication business exception
      • handleDeactivateIdEvent

        @PostMapping(path="/callback/idchange/deactivate_id/{partnerId}",
                     consumes="application/json",
                     produces="application/json")
        public io.mosip.kernel.core.http.ResponseWrapper<?> handleDeactivateIdEvent​(@PathVariable("partnerId")
                                                                                    String partnerId,
                                                                                    @Validated @RequestBody
                                                                                    io.mosip.kernel.core.websub.model.EventModel eventModel,
                                                                                    org.springframework.validation.Errors e)
                                                                             throws io.mosip.authentication.core.exception.IdAuthenticationBusinessException
        Handle events end point.
        Parameters:
        notificationEventsDto - the notification events dto
        e - the e
        Returns:
        the response entity
        Throws:
        io.mosip.authentication.core.exception.IdAuthenticationBusinessException - the id authentication business exception
      • handleActivateIdEvent

        @PostMapping(path="/callback/idchange/activate_id/{partnerId}",
                     consumes="application/json",
                     produces="application/json")
        public io.mosip.kernel.core.http.ResponseWrapper<?> handleActivateIdEvent​(@PathVariable("partnerId")
                                                                                  String partnerId,
                                                                                  @Validated @RequestBody
                                                                                  io.mosip.kernel.core.websub.model.EventModel eventModel,
                                                                                  org.springframework.validation.Errors e)
                                                                           throws io.mosip.authentication.core.exception.IdAuthenticationBusinessException
        Handle events end point.
        Parameters:
        notificationEventsDto - the notification events dto
        e - the e
        Returns:
        the response entity
        Throws:
        io.mosip.authentication.core.exception.IdAuthenticationBusinessException - the id authentication business exception