Class PartnerCertManagerController
java.lang.Object
io.mosip.kernel.partnercertservice.controller.PartnerCertManagerController
Rest Controller for Partner Certificate Management includes certificate Validation and certificate Storage.
- Since:
- 1.1.2
- Author:
- Mahammed Taheer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.mosip.kernel.core.http.ResponseWrapper<CaCertificateChainResponseDto> getCaCertificateList(@Valid io.mosip.kernel.core.http.RequestWrapper<CaCertTypeListRequestDto> certListRequestDto) To get the Previously uploaded CA and IntermediateCA Certificateio.mosip.kernel.core.http.ResponseWrapper<CACertificateTrustPathResponseDto> getCACertificateTrustPath(String caCertId) To Download p7b file for a CA / Intermediate CA certificate along with the trust chainio.mosip.kernel.core.http.ResponseWrapper<PartnerCertDownloadResponeDto> getPartnerCertificate(String partnerCertId) To Download Partner MOSIP CA Signed Certificate.io.mosip.kernel.core.http.ResponseWrapper<PartnerSignedCertDownloadResponseDto> getPartnerSignedCertificate(String partnerCertId) To Download Partner CA Signed Certificate invalid input: '&' MOSIP CA Signed Certificate.io.mosip.kernel.core.http.ResponseWrapper<CACertificateResponseDto> uploadCACertificate(@Valid io.mosip.kernel.core.http.RequestWrapper<CACertificateRequestDto> caCertRequestDto) To Upload CA/Sub-CA certificatesio.mosip.kernel.core.http.ResponseWrapper<PartnerCertificateResponseDto> uploadPartnerCertificate(@Valid io.mosip.kernel.core.http.RequestWrapper<PartnerCertificateRequestDto> partnerCertRequestDto) To Upload Partner Certificate.io.mosip.kernel.core.http.ResponseWrapper<CertificateTrustResponeDto> verifyCertificateTrust(@Valid io.mosip.kernel.core.http.RequestWrapper<CertificateTrustRequestDto> certificateTrustRequestDto) To Upload Partner Certificate.
-
Constructor Details
-
PartnerCertManagerController
public PartnerCertManagerController()
-
-
Method Details
-
uploadCACertificate
@PreAuthorize("hasAnyRole(@keyManAuthRoles.getPostuploadcacertificate())") @ResponseFilter @PostMapping(value="/uploadCACertificate", produces="application/json") public io.mosip.kernel.core.http.ResponseWrapper<CACertificateResponseDto> uploadCACertificate(@RequestBody @Valid @Valid io.mosip.kernel.core.http.RequestWrapper<CACertificateRequestDto> caCertRequestDto) To Upload CA/Sub-CA certificates- Parameters:
caCertRequestDto-CACertificateRequestDtorequest- Returns:
-
Upload Success
invalid reference
CACertficateResponseDto
-
uploadPartnerCertificate
@PreAuthorize("hasAnyRole(@keyManAuthRoles.getPostuploadpartnercertificate())") @ResponseFilter @PostMapping(value="/uploadPartnerCertificate", produces="application/json") public io.mosip.kernel.core.http.ResponseWrapper<PartnerCertificateResponseDto> uploadPartnerCertificate(@RequestBody @Valid @Valid io.mosip.kernel.core.http.RequestWrapper<PartnerCertificateRequestDto> partnerCertRequestDto) To Upload Partner Certificate.- Parameters:
partnerCertRequestDto-PartnerCertificateRequestDtorequest- Returns:
PartnerCertificateResponseDtosigned certificate response
-
getPartnerCertificate
@ResponseFilter @PreAuthorize("hasAnyRole(@keyManAuthRoles.getGetgetpartnercertificatepartnercertid())") @GetMapping("/getPartnerCertificate/{partnerCertId}") public io.mosip.kernel.core.http.ResponseWrapper<PartnerCertDownloadResponeDto> getPartnerCertificate(@PathVariable("partnerCertId") String partnerCertId) To Download Partner MOSIP CA Signed Certificate.- Parameters:
certDownloadRequestDto-PartnerCertDownloadRequestDtorequest- Returns:
PartnerCertDownloadResponeDtoencrypted Data
-
verifyCertificateTrust
@ResponseFilter @PreAuthorize("hasAnyRole(@keyManAuthRoles.getPostverifycertificatetrust())") @PostMapping(value="/verifyCertificateTrust", produces="application/json") public io.mosip.kernel.core.http.ResponseWrapper<CertificateTrustResponeDto> verifyCertificateTrust(@RequestBody @Valid @Valid io.mosip.kernel.core.http.RequestWrapper<CertificateTrustRequestDto> certificateTrustRequestDto) To Upload Partner Certificate.- Parameters:
certificateTrustRequestDto- request- Returns:
CertificateTrustResponeDtocertificate verify response
-
getPartnerSignedCertificate
@ResponseFilter @PreAuthorize("hasAnyRole(@keyManAuthRoles.getGetgetpartnersignedcertificatepartnercertid())") @GetMapping("/getPartnerSignedCertificate/{partnerCertId}") public io.mosip.kernel.core.http.ResponseWrapper<PartnerSignedCertDownloadResponseDto> getPartnerSignedCertificate(@PathVariable("partnerCertId") String partnerCertId) To Download Partner CA Signed Certificate invalid input: '&' MOSIP CA Signed Certificate.- Parameters:
certDownloadRequestDto-PartnerCertDownloadRequestDtorequest- Returns:
PartnerCertDownloadResponeDtoencrypted Data
-
getCaCertificateList
@ResponseFilter @PreAuthorize("hasAnyRole(@keyManAuthRoles.getPostgetcacertificates())") @PostMapping(value="/getCaCertificates", produces="application/json") public io.mosip.kernel.core.http.ResponseWrapper<CaCertificateChainResponseDto> getCaCertificateList(@RequestBody @Valid @Valid io.mosip.kernel.core.http.RequestWrapper<CaCertTypeListRequestDto> certListRequestDto) To get the Previously uploaded CA and IntermediateCA Certificate- Parameters:
certListRequestDto-CaCertTypeListRequestDtorequest- Returns:
CaCertTypeListRequestDtoCetificate List data
-
getCACertificateTrustPath
@ResponseFilter @PreAuthorize("hasAnyRole(@keyManAuthRoles.getGetcacertificatetrustpath())") @GetMapping("/getCACertificateTrustPath/{caCertId}") public io.mosip.kernel.core.http.ResponseWrapper<CACertificateTrustPathResponseDto> getCACertificateTrustPath(@PathVariable("caCertId") String caCertId) To Download p7b file for a CA / Intermediate CA certificate along with the trust chain- Parameters:
caCertId-CACertificateTrustPathRequestDtorequest- Returns:
CACertificateTrustPathResponseDtop7b data
-