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.
|
String |
getAuthURL()
Auth endpoint - the root for licensespring Auth API.
|
String |
getClientId()
Client identifier for OAuth authentication.
|
String |
getClientSecret()
Client secret for OAuth authentication.
|
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 |
getServiceUrlCertPath()
Optional parameter, path to a public key certificate file (.pem) used for license verification.
|
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()
Deprecated.
this configuration param is ignored. You must check "Allow negative consumptions"
when creating order in LicenseSpring portal
|
boolean |
isEnableRetrying()
Boolean value that allows or disables retrying on failed API call.
|
boolean |
isOAuth()
Returns true if configuration uses OAuth, false otherwise.
|
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 boolean isOAuth()
public String getSdkVersion()
public int getLicenseSpringAPIVersion()
public feign.Logger.Level getRequestLogging()
public String getServiceURL()
public String getAuthURL()
public String getApiKey()
public String getClientId()
public String getClientSecret()
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.@Deprecated 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()
public String getServiceUrlCertPath()
protected boolean canEqual(Object other)
Copyright © 2025 Cense Data Inc.. All rights reserved.