Class LicenseDetailsService


  • @Singleton
    public class LicenseDetailsService
    extends BaseService
    • Constructor Detail

      • LicenseDetailsService

        public LicenseDetailsService()
    • Method Detail

      • validateLicenseConfiguration

        public GenericResponse validateLicenseConfiguration()
        The function checks the license key and the api key and returns a response object
        Returns:
        A LicenseApiResponse object is being returned.
      • retrieveLicense

        public GenericResponse retrieveLicense()
        The function `retrieveLicense()` retrieves a license using the provided configuration and returns a generic response.
        Returns:
        The method `retrieveLicense()` returns a `GenericResponse` object.
      • activateLicense

        public GenericResponse activateLicense​(LicenseRequest licenseRequest)
        The function checks if the license is already active, if not, it creates a header map, creates a body map, and sends a POST request to the license server
        Parameters:
        licenseRequest - The license key that you received from the license server.
        Returns:
        A LicenseApiResponse object.
      • generateTrialLicense

        public GenericResponse generateTrialLicense()
        This function generates a trial license by sending a request to a specified URL and saving the license key in the configuration.
        Returns:
        The method is returning a LicenseApiResponse object.
      • getLicenseDetails

        public LicenseResponse getLicenseDetails()
        This function is used to get the license details of the admin-ui
        Returns:
        A LicenseResponse object
      • postSSA

        public GenericResponse postSSA​(SSARequest ssaRequest)
        The function takes an SSA string as input, calls the DCR API to get the scan hostname and OIDC client settings, and saves the SSA string and the scan hostname and OIDC client settings in the Admin UI configuration
        Parameters:
        ssaRequest - The SSA request object.
        Returns:
        A LicenseApiResponse object.