@RestController public class LicenseKeyController extends Object
| Constructor and Description |
|---|
LicenseKeyController() |
| Modifier and Type | Method and Description |
|---|---|
io.mosip.kernel.core.http.ResponseWrapper<LicenseKeyFetchResponseDto> |
fetchLicenseKeyPermissions(String tspId,
String licenseKey)
This method will fetch the mapped permissions for a license key.
|
io.mosip.kernel.core.http.ResponseWrapper<LicenseKeyGenerationResponseDto> |
generateLicenseKey(io.mosip.kernel.core.http.RequestWrapper<LicenseKeyGenerationDto> licenseKeyGenerationDto)
This method will generate license key against a certain TSP ID.
|
io.mosip.kernel.core.http.ResponseWrapper<LicenseKeyMappingResponseDto> |
mapLicenseKey(io.mosip.kernel.core.http.RequestWrapper<LicenseKeyMappingDto> licenseKeyMappingDto)
This method will map license key to several permissions.
|
@ResponseFilter @PostMapping(value="/license/generate") public io.mosip.kernel.core.http.ResponseWrapper<LicenseKeyGenerationResponseDto> generateLicenseKey(@RequestBody io.mosip.kernel.core.http.RequestWrapper<LicenseKeyGenerationDto> licenseKeyGenerationDto)
licenseKeyGenerationDto - the LicenseKeyGenerationResponseDto request
object wrapped in RequestWrapper.@ResponseFilter @PostMapping(value="/license/permission") public io.mosip.kernel.core.http.ResponseWrapper<LicenseKeyMappingResponseDto> mapLicenseKey(@RequestBody io.mosip.kernel.core.http.RequestWrapper<LicenseKeyMappingDto> licenseKeyMappingDto)
licenseKeyMappingDto - the LicenseKeyMappingDto.@ResponseFilter @GetMapping(value="/license/permission") public io.mosip.kernel.core.http.ResponseWrapper<LicenseKeyFetchResponseDto> fetchLicenseKeyPermissions(@RequestParam(value="tspId") String tspId, @RequestParam(value="licenseKey") String licenseKey)
tspId - tsp idlicenseKey - the license key of which the permissions need to be
fetched.Copyright © 2020. All rights reserved.