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) |
AirgapActivationResponse |
airgapActivate(AirgapActivationRequest payload) |
AirgapDeactivationResponse |
airgapDeactivate(AirgapDeactivationRequest payload) |
AirgapDeactivationResponse |
airgapDeactivateGenerate(AirgapDeactivationRequest payload) |
AirgapActivationResponse |
airgapGenerate(AirgapActivationRequest 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) |
CloudConfigResponse |
getConfig() |
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<FloatingFeatureUserResponse> |
getLicenseFeatures(Long licenseId) |
List<com.licensespring.LicenseData> |
getLicenses() |
List<FloatingUserResponse> |
getLicenseUsers(Long licenseId) |
MeResponse |
getMe() |
SyncSettingsResponse |
getSyncSettings() |
List<UserResponse> |
getUsers() |
boolean |
isV2Api() |
LoginResponse |
login(LoginRequest payload) |
OfflineActivationResponse |
offlineActivationGenerate(OfflineActivationRequest payload) |
OfflineActivationResponse |
offlineActivationUpload(OfflineActivationRequest payload) |
OfflineDeactivationResponse |
offlineDeactivationGenerate(OfflineDeactivationRequest payload) |
OfflineActivationResponse |
offlineUpdate(OfflineActivationRequest 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.
|
MessageResponse |
releaseAllFeaturesFromLicense(Long licenseId) |
boolean |
releaseFeature(String feature)
Release a feature registration.
|
void |
removeLicense() |
RemoveLicenseResponse |
removeLicenseById(Long id) |
RemoveUserResponse |
removeUser(Long userId) |
boolean |
serverHealthy()
Check if the server is healthy.
|
InitialPasswordResponse |
setInitialPassword(InitialPasswordRequest payload) |
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)
|
SyncResponse |
setSyncSettings(SyncSettingsRequest payload) |
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 |
SyncResponse |
triggerSync() |
boolean |
unregister()
Unregister the user.
|
boolean |
unregisterAll()
Unregisters all users
|
MessageResponse |
unregisterAllUsersFromLicense(Long licenseId) |
void |
unregisterFeatureForUserV2(Long licenseId,
UnregisterFeatureForUserRequest payload) |
void |
unregisterUserFromLicenseV2(Long licenseId,
UnregisterUserFromLicenseRequest payload) |
CloudConfigResponse |
updateConfig(CloudConfigUpdateRequest 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 List<UserResponse> getUsers() throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic RemoveUserResponse removeUser(Long userId) 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.LicenseSpringExceptionpublic MeResponse getMe() throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic InitialPasswordResponse setInitialPassword(InitialPasswordRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic CloudConfigResponse getConfig() throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic CloudConfigResponse updateConfig(CloudConfigUpdateRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic SyncSettingsResponse getSyncSettings() throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic SyncResponse setSyncSettings(SyncSettingsRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic SyncResponse triggerSync() throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic List<FloatingUserResponse> getLicenseUsers(Long licenseId) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic MessageResponse unregisterAllUsersFromLicense(Long licenseId) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic List<FloatingFeatureUserResponse> getLicenseFeatures(Long licenseId) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic MessageResponse releaseAllFeaturesFromLicense(Long licenseId) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic OfflineActivationResponse offlineActivationUpload(OfflineActivationRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic OfflineActivationResponse offlineActivationGenerate(OfflineActivationRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic OfflineDeactivationResponse offlineDeactivationGenerate(OfflineDeactivationRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic OfflineActivationResponse offlineUpdate(OfflineActivationRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic AirgapActivationResponse airgapGenerate(AirgapActivationRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic AirgapActivationResponse airgapActivate(AirgapActivationRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic AirgapDeactivationResponse airgapDeactivateGenerate(AirgapDeactivationRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionpublic AirgapDeactivationResponse airgapDeactivate(AirgapDeactivationRequest payload) throws com.licensespring.model.exceptions.LicenseSpringException
com.licensespring.model.exceptions.LicenseSpringExceptionCopyright © 2026 Cense Data Inc.. All rights reserved.