public class Retriever extends SensitivityBase
Constructor and Description |
---|
Retriever()
Constructor.
|
Retriever(java.lang.String serviceUrl,
java.lang.String host)
Constructor with custom service URL and host.
|
Modifier and Type | Method and Description |
---|---|
void |
retrieveLicense(java.lang.String accountId,
java.lang.String projectId,
java.lang.String authKey,
java.lang.String appId,
LicenseRetrieverListener licenseRetrieverListener)
Retrieves the license from the server.
|
void |
retrieveSettings(java.lang.String accountId,
java.lang.String projectId,
java.lang.String authKey,
java.lang.String appId,
SettingsRetrieverListener settingsRetrieverListener,
Module module)
Retrieves the settings from the server.
|
public Retriever()
public Retriever(java.lang.String serviceUrl, java.lang.String host)
serviceUrl
- The service URL for the server. The default service URL is "https://api.sensitivity.io/api/v1/"host
- The host for the server. The default host is "api.sensitivity.io"public void retrieveLicense(java.lang.String accountId, java.lang.String projectId, java.lang.String authKey, java.lang.String appId, LicenseRetrieverListener licenseRetrieverListener)
accountId
- Your account id.projectId
- Your project id.authKey
- Your auth key.appId
- The app id.licenseRetrieverListener
- The LicenseRetrieverListener
which receives the response.public void retrieveSettings(java.lang.String accountId, java.lang.String projectId, java.lang.String authKey, java.lang.String appId, SettingsRetrieverListener settingsRetrieverListener, Module module)
accountId
- Your account id.projectId
- Your project id.authKey
- Your auth key.appId
- The app id.settingsRetrieverListener
- The SettingsRetrieverListener
which receives the response.module
- The Module
for which to retrieve the settings.