Interface LicenseKeyManagerService<T,​D,​S>

  • Type Parameters:
    T - the return type.
    D - the input argument type.
    S - the input argument type.

    public interface LicenseKeyManagerService<T,​D,​S>
    Interface that provides methods for license key management.
    Since:
    1.0.0
    Author:
    Sagar Mahapatra
    • Method Detail

      • generateLicenseKey

        T generateLicenseKey​(D licenseKeyGenerationDto)
        Method to generate license key.
        Parameters:
        licenseKeyGenerationDto - the request DTO.
        Returns:
        the response.
      • mapLicenseKey

        T mapLicenseKey​(S licenseKeyMappingDto)
        Method to map license key with permissions.
        Parameters:
        licenseKeyMappingDto - the request DTO.
        Returns:
        the response.
      • fetchLicenseKeyPermissions

        List<T> fetchLicenseKeyPermissions​(T tspID,
                                           T licenseKey)
        Method to fetch permissions mapped to a license key.
        Parameters:
        tspID - the TSP ID to which the license is mapped.
        licenseKey - the mapped license key.
        Returns:
        the response.