public abstract class BaseConfiguration extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseConfiguration.ConfigurationBuilder<C extends BaseConfiguration,B extends BaseConfiguration.ConfigurationBuilder<C,B>>
Builder for
BaseConfiguration. |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseConfiguration(BaseConfiguration.ConfigurationBuilder<?,?> b) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getApiKey()
Required parameter, the api key can be found by accessing your account on the LicenseSpring platform.
|
String |
getApiUrl()
Returns base URL of LicenseSpring API.
|
String |
getAppName()
Name of the application implementing the SDK.
|
String |
getAppVersion()
Version of the application implementing the SDK.
|
List<okhttp3.ConnectionSpec> |
getConnectionSpecs()
Specifies configuration for the socket connection that HTTP traffic travels through.
|
HostnameVerifier |
getHostnameVerifier()
Verifier used to confirm that response certificates apply to requested hostnames for HTTPS connections.
|
IdentityProvider |
getIdentityProvider()
Set a custom IdentityProvider which generates unique keys for a particular device
Default implementation is based on Motherboard / CPU / Disk
|
Set<InfoToStore> |
getInfoToStore()
Collection of what information to track.
|
int |
getLicenseSpringAPIVersion()
LicenseSpring API version.
|
String |
getProductCode()
Required parameter, every license is attached to a particular product.
|
String |
getProxyCertPath()
Optional parameter, used to configure client to trust proxy certificate.
|
String |
getProxyHost()
Optional parameter, used to configure all API calls to use a proxy service.
|
String |
getProxyPass()
Optional parameter, used to configure Basic authentication for a proxy service.
|
Integer |
getProxyPort()
Optional parameter, used to configure all API calls to use a proxy service.
|
String |
getProxyUser()
Optional parameter, used to configure Basic authentication for a proxy service.
|
feign.Logger.Level |
getRequestLogging()
HTTP Request/Response logging for debugging purposes.
|
Long |
getRequestTimeout()
Optional parameter for setting the timeout when making api requests (in seconds)
default is 10 seconds
|
String |
getSdkVersion()
SDK version.
|
String |
getServiceURL()
Service endpoint - the root of the licensespring API.
|
String |
getSharedKey()
Required parameter, the shared key can be found by accessing your account on the LicenseSpring platform.
|
com.licensespring.internal.config.SslConfig |
getSslConfig()
Custom SSL Configuration to override the ones used by the underlying http client
|
int |
hashCode() |
boolean |
isCacheHardwareID()
Set true to allow caching of hardware IDs, otherwise the SDK directly invokes the
IdentityProvider.getKey() every time the SDK needs the hardware id. |
boolean |
isDisableSsl()
Deprecated.
Optional parameter, disables ssl checking (for the LicenseSpring servers)
default is false
|
boolean |
isEnableNegativeConsumptions()
Boolean value that allows or disables negative consumptions on both license consumptions
and product feature consumptions.
|
boolean |
isEnableRetrying()
Boolean value that allows or disables retrying on failed API call.
|
boolean |
isStoreMachineInfo()
Optional parameter, enables tracking of machine specific information on license activation and check.
|
String |
toString() |
protected BaseConfiguration(BaseConfiguration.ConfigurationBuilder<?,?> b)
public String getApiUrl()
public String getSdkVersion()
public int getLicenseSpringAPIVersion()
public feign.Logger.Level getRequestLogging()
public String getServiceURL()
public String getApiKey()
public String getProductCode()
public String getSharedKey()
public String getAppName()
public String getAppVersion()
public IdentityProvider getIdentityProvider()
public boolean isCacheHardwareID()
IdentityProvider.getKey() every time the SDK needs the hardware id.public boolean isEnableNegativeConsumptions()
public boolean isEnableRetrying()
ConnectionException will be thrown.public String getProxyHost()
public Integer getProxyPort()
public String getProxyUser()
public String getProxyPass()
public String getProxyCertPath()
public HostnameVerifier getHostnameVerifier()
@Deprecated public boolean isDisableSsl()
public Long getRequestTimeout()
public boolean isStoreMachineInfo()
default is false
public Set<InfoToStore> getInfoToStore()
If storeMachineInfo is disabled, this is ignored.
If storeMachineInfo is enabled and this is an empty collection, all info will be stored
See available info InfoToStore
defaults to ALL information.
public com.licensespring.internal.config.SslConfig getSslConfig()
contains:
* SSLSocketFactory for override ssl configuration used by the underlying client
* X509TrustManager for override ssl configuration used by the underlying client
* HostnameVerifier for override ssl configuration used by the underlying client
public List<okhttp3.ConnectionSpec> getConnectionSpecs()
protected boolean canEqual(Object other)
Copyright © 2024 Cense Data Inc.. All rights reserved.