Class LicenseDetailsService
- java.lang.Object
-
- io.jans.ca.plugin.adminui.service.BaseService
-
- io.jans.ca.plugin.adminui.service.license.LicenseDetailsService
-
@Singleton public class LicenseDetailsService extends BaseService
-
-
Constructor Summary
Constructors Constructor Description LicenseDetailsService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LicenseApiResponse
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 serverLicenseApiResponse
checkLicense()
LicenseResponse
getLicenseDetails()
This function is used to get the license details of the admin-uiLicenseApiResponse
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 configurationLicenseApiResponse
validateLicenseConfiguration()
The function checks the license key and the api key and returns a response object-
Methods inherited from class io.jans.ca.plugin.adminui.service.BaseService
executeDCR, getClaims, getToken, getToken
-
-
-
-
Method Detail
-
validateLicenseConfiguration
public LicenseApiResponse validateLicenseConfiguration()
The function checks the license key and the api key and returns a response object- Returns:
- A LicenseApiResponse object is being returned.
-
checkLicense
public LicenseApiResponse checkLicense()
-
activateLicense
public LicenseApiResponse 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.
-
getLicenseDetails
public LicenseResponse getLicenseDetails()
This function is used to get the license details of the admin-ui- Returns:
- A LicenseResponse object
-
postSSA
public LicenseApiResponse 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.
-
-