public class ProxyFloatingService extends Object
| Constructor and Description |
|---|
ProxyFloatingService(ProxyConfiguration proxyConfiguration)
Proxy floating service has to be built using the
ProxyConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
void |
addAirgapLicense(com.licensespring.dto.proxy_floating_service.AddAirgapLicenseParams params) |
com.licensespring.dto.floating_server.add_consumption.response.AddConsumptionResp |
addConsumption(com.licensespring.dto.proxy_floating_service.AddConsumptionParams params) |
AddConsumptionToFeatureResponse |
addConsumptionToFeatureV2(Long licenseId,
AddConsumptionToFeatureRequest payload) |
AddConsumptionToLicenseResponse |
addConsumptionToLicenseV2(Long licenseId,
AddConsumptionToLicenseRequest payload) |
com.licensespring.dto.floating_server.add_feature_consumption.response.AddFeatureConsumptionResp |
addFeatureConsumption(com.licensespring.dto.proxy_floating_service.AddFeatureConsumptionParams params) |
void |
addLicense(com.licensespring.dto.proxy_floating_service.AddLicenseParams params) |
AddLicenseResponse |
addLicenseV2(com.licensespring.dto.proxy_floating_service.AddLicenseParams params) |
AddUserResponse |
addUser(AddUserRequest payload) |
BorrowResponse |
borrow()
Borrows a license slot if the license has that feature enabled
|
BorrowLicenseResponse |
borrowLicenseV2(Long licenseId,
BorrowLicenseParams payload)
Borrows a license slot if the license has that feature enabled
|
ChangePasswordResponse |
changePassword(ChangePasswordRequest payload) |
ProxyFeatureResponse |
checkLicenseFeature(String feature)
Check if a feature is licensed.
|
String |
generateAirgapSignature(com.licensespring.dto.proxy_floating_service.GenerateAirgapSignatureParams params) |
void |
generateOfflineLicense(String licenseKey) |
com.licensespring.LicenseData |
getLicense()
Fetches license data from the server for the product specified in the ProxyConfiguration
object.
|
com.licensespring.LicenseData |
getLicenseById(Long id) |
List<com.licensespring.LicenseData> |
getLicenses() |
boolean |
isV2Api() |
LoginResponse |
login(LoginRequest payload) |
com.licensespring.LicenseData |
register()
Register the user.
|
RegisterFeatureForUserResponse |
registerFeatureForUserV2(Long licenseId,
RegisterFeatureForUserRequest payload) |
com.licensespring.LicenseData |
registerUserToLicenseV2(Long licenseId,
RegisterUserToLicenseRequest payload) |
boolean |
releaseAllFeatures(String feature)
Release all feature registrations for the user.
|
boolean |
releaseFeature(String feature)
Release a feature registration.
|
void |
removeLicense() |
RemoveLicenseResponse |
removeLicenseById(Long id) |
RemoveUserResponse |
removeUser(RemoveUserRequest payload) |
boolean |
serverHealthy()
Check if the server is healthy.
|
boolean |
setKeys(String apiKey,
String sharedKey)
Sets the apiKey and sharedKey on the floating server
|
boolean |
setPassword(String oldPassword,
String newPassword)
Changes the password on the floating server (or for the user if RBAC is enabled)
|
void |
shutdownScheduler()
Calls
ExecutorService.shutdownNow() for the periodic check executor, if period
check is enabled Used for cases where JVM doesn't get the shutdown signal and keeps a thread
running indefinitely |
boolean |
unregister()
Unregister the user.
|
boolean |
unregisterAll()
Unregisters all users
|
void |
unregisterFeatureForUserV2(Long licenseId,
UnregisterFeatureForUserRequest payload) |
void |
unregisterUserFromLicenseV2(Long licenseId,
UnregisterUserFromLicenseRequest payload) |
void |
uploadOfflineLicense() |
public ProxyFloatingService(ProxyConfiguration proxyConfiguration)
ProxyConfiguration.proxyConfiguration - build via the builder patternpublic boolean isV2Api()
public com.licensespring.LicenseData register()
throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic boolean unregister()
throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic com.licensespring.LicenseData getLicense()
throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic List<com.licensespring.LicenseData> getLicenses() throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic boolean serverHealthy()
throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic boolean setPassword(String oldPassword, String newPassword) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic ChangePasswordResponse changePassword(ChangePasswordRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic boolean setKeys(String apiKey, String sharedKey) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic boolean unregisterAll()
throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic BorrowResponse borrow() throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic BorrowLicenseResponse borrowLicenseV2(Long licenseId, BorrowLicenseParams payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic com.licensespring.LicenseData registerUserToLicenseV2(Long licenseId, RegisterUserToLicenseRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic void unregisterUserFromLicenseV2(Long licenseId, UnregisterUserFromLicenseRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic RegisterFeatureForUserResponse registerFeatureForUserV2(Long licenseId, RegisterFeatureForUserRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic void unregisterFeatureForUserV2(Long licenseId, UnregisterFeatureForUserRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic AddConsumptionToLicenseResponse addConsumptionToLicenseV2(Long licenseId, AddConsumptionToLicenseRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic AddConsumptionToFeatureResponse addConsumptionToFeatureV2(Long licenseId, AddConsumptionToFeatureRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic void shutdownScheduler()
ExecutorService.shutdownNow() for the periodic check executor, if period
check is enabled Used for cases where JVM doesn't get the shutdown signal and keeps a thread
running indefinitelypublic void generateOfflineLicense(String licenseKey) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic void uploadOfflineLicense()
throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic void addLicense(com.licensespring.dto.proxy_floating_service.AddLicenseParams params)
throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic AddLicenseResponse addLicenseV2(com.licensespring.dto.proxy_floating_service.AddLicenseParams params) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic com.licensespring.LicenseData getLicenseById(Long id) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic RemoveLicenseResponse removeLicenseById(Long id) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic void removeLicense()
throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic String generateAirgapSignature(com.licensespring.dto.proxy_floating_service.GenerateAirgapSignatureParams params) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic void addAirgapLicense(com.licensespring.dto.proxy_floating_service.AddAirgapLicenseParams params)
throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic com.licensespring.dto.floating_server.add_consumption.response.AddConsumptionResp addConsumption(com.licensespring.dto.proxy_floating_service.AddConsumptionParams params)
throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic com.licensespring.dto.floating_server.add_feature_consumption.response.AddFeatureConsumptionResp addFeatureConsumption(com.licensespring.dto.proxy_floating_service.AddFeatureConsumptionParams params)
throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic ProxyFeatureResponse checkLicenseFeature(String feature) throws com.licensespring.model.exceptions.LicenseSpringException
feature - The feature code to checkcom.licensespring.model.exceptions.LicenseSpringExceptionpublic boolean releaseFeature(String feature) throws com.licensespring.model.exceptions.LicenseSpringException
feature - The feature code to releasecom.licensespring.model.exceptions.LicenseSpringExceptionpublic boolean releaseAllFeatures(String feature) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic AddUserResponse addUser(AddUserRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic RemoveUserResponse removeUser(RemoveUserRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic LoginResponse login(LoginRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionCopyright © 2025 Cense Data Inc.. All rights reserved.