public static class ProxyConfiguration.ProxyConfigurationBuilder extends Object
public ProxyConfiguration.ProxyConfigurationBuilder host(String host)
host
- host address of the proxy serverpublic ProxyConfiguration.ProxyConfigurationBuilder port(Integer port)
port
- port of the proxy serverpublic ProxyConfiguration.ProxyConfigurationBuilder product(String product)
product
- Required parameter, every license is attached to a particular product. This
short code can be found the LicenseSpring platform.public ProxyConfiguration.ProxyConfigurationBuilder addShutdownHook(boolean addShutdownHook)
addShutdownHook
- should the sdk add a shutdown hook for user unregistering.public ProxyConfiguration.ProxyConfigurationBuilder enablePeriodicCheck(boolean enablePeriodicCheck)
enablePeriodicCheck
- the enable periodic checkpublic ProxyConfiguration.ProxyConfigurationBuilder enableRetrying(boolean enableRetrying)
enableRetrying
- Set if retrying API calls on failure is allowed.public ProxyConfiguration.ProxyConfigurationBuilder proxyRegisterSubscriber(ProxyRegisterSubscriber proxyRegisterSubscriber)
proxyRegisterSubscriber
- the implementation handling check events.public ProxyConfiguration.ProxyConfigurationBuilder requestLogging(feign.Logger.Level requestLogging)
requestLogging
- Request logging for debugging purposes. Default is NONE.public ProxyConfiguration.ProxyConfigurationBuilder cacheHardwareID(boolean cacheHardwareID)
cacheHardwareID
- Set true if you want to cache ID retrieving of hardware ID.public ProxyConfiguration.ProxyConfigurationBuilder identityProvider(com.licensespring.IdentityProvider identityProvider)
identityProvider
- Set a custom IdentityProvider which generates unique keys for a
particular device. For the Floating Client the default is an internal implementation is
based on ONCE_PER_PROCESS id.public ProxyConfiguration.ProxyConfigurationBuilder proxyHost(String proxyHost)
proxyHost
- Set the proxy host if using a proxy for api calls.public ProxyConfiguration.ProxyConfigurationBuilder proxyPort(Integer proxyPort)
proxyPort
- Set the proxy port if using a proxy for api calls.public ProxyConfiguration.ProxyConfigurationBuilder proxyUser(String proxyUser)
proxyUser
- Set the proxy username for Basic Authpublic ProxyConfiguration.ProxyConfigurationBuilder proxyPass(String proxyPass)
proxyPass
- Set the proxy password for Basic Authpublic ProxyConfiguration.ProxyConfigurationBuilder proxyCertPath(String proxyCertPath)
proxyCertPath
- used to configure client to trust proxy certificate. Path to .pem
certificate filepublic ProxyConfiguration.ProxyConfigurationBuilder hostnameVerifier(HostnameVerifier hostnameVerifier)
hostnameVerifier
- used to confirm that response certificates apply to requested
hostnames for HTTPS connections. If unset, a default hostname verifier will be used.public ProxyConfiguration.ProxyConfigurationBuilder requestTimeout(Long requestTimeout)
requestTimeout
- set the timeout for making api calls (in 10 seconds), default is 10
secondspublic ProxyConfiguration.ProxyConfigurationBuilder connectionSpecs(List<okhttp3.ConnectionSpec> connectionSpecs)
connectionSpecs
- configuration for the socket connection that HTTP traffic travels
through.protected ProxyConfiguration.ProxyConfigurationBuilder self()
public ProxyConfiguration build()
ProxyConfiguration
.public String toString()
public ProxyConfiguration.ProxyConfigurationBuilder enablePeriodicRegister(boolean enablePeriodicRegister)
this
.Copyright © 2024 Cense Data Inc.. All rights reserved.