C - subclass of BaseConfigurationB - subclass of BaseConfiguration.ConfigurationBuilderpublic abstract static class BaseConfiguration.ConfigurationBuilder<C extends BaseConfiguration,B extends BaseConfiguration.ConfigurationBuilder<C,B>> extends Object
BaseConfiguration.| Constructor and Description |
|---|
ConfigurationBuilder() |
| Modifier and Type | Method and Description |
|---|---|
B |
apiKey(String apiKey) |
B |
appName(String appName)
Name of the application implementing the SDK.
|
B |
appVersion(String appVersion)
Version of the application implementing the SDK.
|
abstract C |
build() |
B |
cacheHardwareID(boolean cacheHardwareID) |
B |
connectionSpecs(List<okhttp3.ConnectionSpec> connectionSpecs)
Specifies configuration for the socket connection that HTTP traffic travels through.
|
B |
disableSsl(boolean disableSsl) |
B |
enableNegativeConsumptions(boolean enableNegativeConsumptions) |
B |
enableRetrying(boolean enableRetrying) |
Boolean |
getCacheHardwareID()
Is hardware caching enabled or not.
|
Boolean |
getEnableRetrying() |
IdentityProvider |
getIdentityProvider() |
B |
hostnameVerifier(HostnameVerifier hostnameVerifier)
Verifier used to confirm that response certificates apply to requested hostnames for HTTPS connections.
|
B |
identityProvider(IdentityProvider identityProvider)
HardwareIdStrategy
|
B |
infoToStore(InfoToStore infoToStore) |
B |
productCode(String productCode) |
B |
proxyCertPath(String proxyCertPath) |
B |
proxyHost(String proxyHost) |
B |
proxyPass(String proxyPass) |
B |
proxyPort(Integer proxyPort) |
B |
proxyUser(String proxyUser) |
B |
requestLogging(feign.Logger.Level requestLogging) |
B |
requestTimeout(Long requestTimeout) |
protected abstract B |
self() |
B |
serviceURL(String serviceURL)
Service endpoint - the root of the licensespring API.
|
B |
sharedKey(String sharedKey)
Required parameter, the api key can be found by accessing your account on the LicenseSpring platform.
|
B |
sslConfig(SSLSocketFactory socketFactory,
X509TrustManager trustManager) |
B |
sslConfig(SSLSocketFactory socketFactory,
X509TrustManager trustManager,
HostnameVerifier hostnameVerifier) |
B |
storeMachineInfo(boolean storeMachineInfo) |
String |
toString()
Autogenerated toString containing all the fields.
|
public B requestLogging(feign.Logger.Level requestLogging)
requestLogging - Request logging for debugging purposes. Default is NONE.public B serviceURL(String serviceURL)
serviceURL - Server endpoint, do not change unless a private LicenseSpring server is deployedpublic B apiKey(String apiKey)
apiKey - Required parameter, you can find your API Key on the LicenseSpring platform.public B productCode(String productCode)
productCode - Required parameter, every license is attached to a particular product.
This short code can be found the LicenseSpring platform.public B sharedKey(String sharedKey)
sharedKey - Required parameter, this shared key can be found on the LicenseSpring platform.public B appName(String appName)
appName - Name of the application (as to be seen in LS platform).public B appVersion(String appVersion)
appVersion - Manually set version of the application.public B identityProvider(IdentityProvider identityProvider)
identityProvider - Set a custom IdentityProvider which generates unique keys for a particular device.
For the License-Client the default is an internal implementation is based on
Motherboard / CPU / Disk. On the licenseSpringpublic B cacheHardwareID(boolean cacheHardwareID)
cacheHardwareID - Set true if you want to cache ID retrieving of hardware ID.public B enableNegativeConsumptions(boolean enableNegativeConsumptions)
enableNegativeConsumptions - Set if consumptions can be negative.public B enableRetrying(boolean enableRetrying)
enableRetrying - Set if retrying API calls on failure is allowed.public B proxyHost(String proxyHost)
proxyHost - Set the proxy host if using a proxy for api calls.public B proxyPort(Integer proxyPort)
proxyPort - Set the proxy port if using a proxy for api calls.public B proxyUser(String proxyUser)
proxyUser - Set the proxy username for Basic Authpublic B proxyPass(String proxyPass)
proxyPass - Set the proxy password for Basic Authpublic B proxyCertPath(String proxyCertPath)
proxyCertPath - Path to proxy certificate (.pem) file that client trusts.public B hostnameVerifier(HostnameVerifier hostnameVerifier)
hostnameVerifier - hostname verifierpublic B disableSsl(boolean disableSsl)
disableSsl - set the checking of SSL connection with LS serverspublic B requestTimeout(Long requestTimeout)
requestTimeout - set the timeout for making api calls (in 10 seconds), default is 10 secondspublic B connectionSpecs(List<okhttp3.ConnectionSpec> connectionSpecs)
connectionSpecs - connection specs configurationpublic B storeMachineInfo(boolean storeMachineInfo)
storeMachineInfo - set the sending of additional machine information to the LS servers, default is falsepublic B infoToStore(InfoToStore infoToStore)
infoToStore - adds the information to be tracked on LS servers. No effect if storeMachineInfo is disabledpublic B sslConfig(SSLSocketFactory socketFactory, X509TrustManager trustManager, HostnameVerifier hostnameVerifier)
socketFactory - SSLSocketFactory for override ssl configuration used by the underlying clienttrustManager - X509TrustManager for override ssl configuration used by the underlying clienthostnameVerifier - HostnameVerifier for override ssl configuration used by the underlying clientpublic B sslConfig(SSLSocketFactory socketFactory, X509TrustManager trustManager)
socketFactory - SSLSocketFactory for override ssl configuration used by the underlying clienttrustManager - X509TrustManager for override ssl configuration used by the underlying clientpublic Boolean getEnableRetrying()
public IdentityProvider getIdentityProvider()
public Boolean getCacheHardwareID()
protected abstract B self()
public abstract C build()
Copyright © 2024 Cense Data Inc.. All rights reserved.