Floating Server V2

Authentication Methods

login

Signature
public LoginResponse login(LoginRequest payload) throws LicenseSpringException

Parameters:

  • payload (LoginRequest): Login credentials containing username and password

Returns: LoginResponse - Authentication response containing token and user information

Throws:

  • LicenseSpringException - If authentication fails

  • UnsupportedOperationException - If using Floating Server v1 API

Description: Logs in a user with the provided credentials and returns an authentication token. Only available with Floating Server v2 API.

Configuration Methods

changePassword

Signature
public ChangePasswordResponse changePassword(ChangePasswordRequest payload) throws LicenseSpringException

Parameters:

  • payload (ChangePasswordRequest): Contains username, old password, and new password

Returns: ChangePasswordResponse - Response indicating success or failure of password change

Throws:

  • LicenseSpringException - If password change fails

  • UnsupportedOperationException - If using Floating Server v1 API

Description: Changes the password for the specified user. Only available with Floating Server v2 API.

License Management Methods

getLicenses

Returns: List<LicenseData> - List of all licenses for the product (empty list if none found)

Throws:

  • LicenseSpringException - If the request fails

  • UnsupportedOperationException - If using Floating Server v1 API

Description: Fetches all licenses associated with the product specified in ProxyConfiguration. Only available with Floating Server v2 API.

getLicenseById

Parameters:

  • id (Long): The license identifier

Returns: LicenseData - Complete license object with details

Throws:

  • LicenseSpringException - If the request fails

  • UnsupportedOperationException - If using Floating Server v1 API

Description: Retrieves comprehensive license details by ID. Only available with Floating Server v2 API.

addLicenseV2

Parameters:

  • params (AddLicenseParams): License activation parameters containing the license key

Returns: AddLicenseResponse - Activation result details

Throws:

  • LicenseSpringException - If activation fails

  • UnsupportedOperationException - If using Floating Server v1 API

Description: Activates a product license using the license key. The product is taken from ProxyConfiguration. Only available with Floating Server v2 API.

removeLicenseById

Parameters:

  • id (Long): The license identifier to remove

Returns: RemoveLicenseResponse - Response message indicating success

Throws:

  • LicenseSpringException - If removal fails

  • UnsupportedOperationException - If using Floating Server v1 API

Description: Removes the specified license from the floating server. Only available with Floating Server v2 API.

borrowLicenseV2

Parameters:

  • licenseId (Long): The license identifier

  • payload (BorrowLicenseParams): Borrow parameters containing username and borrowedUntil timestamp

Returns: BorrowLicenseResponse - Borrow operation result

Throws:

  • LicenseSpringException - If borrowing fails

  • UnsupportedOperationException - If using Floating Server v1 API

Description: Borrows a license slot for offline usage. The borrowedUntil timestamp is converted to UTC and formatted as ISO offset date-time. Only available with Floating Server v2 API.

User Management Methods

addUser

Parameters:

  • payload (AddUserRequest): User details to add

Returns: AddUserResponse - Response containing added user information

Throws:

  • LicenseSpringException - If user addition fails

  • UnsupportedOperationException - If using Floating Server v1 API

Description: Creates a new user on the floating server. Only available with Floating Server v2 API.

removeUser

Parameters:

  • payload (RemoveUserRequest): User details to remove

Returns: RemoveUserResponse - Response confirming user removal

Throws:

  • LicenseSpringException - If user removal fails

  • UnsupportedOperationException - If using Floating Server v1 API

Description: Deletes a user from the floating server. Only available with Floating Server v2 API.

registerUserToLicenseV2

Parameters:

  • licenseId (Long): The license identifier

  • payload (RegisterUserToLicenseRequest): User registration details

Returns: LicenseData - Updated license data after user registration

Throws:

  • LicenseSpringException - If registration fails

  • UnsupportedOperationException - If using Floating Server v1 API

Description: Registers a user to the specified license with allowed registrations. Only available with Floating Server v2 API.

unregisterUserFromLicenseV2

Parameters:

  • licenseId (Long): The license identifier

  • payload (UnregisterUserFromLicenseRequest): User unregistration details

Throws:

  • LicenseSpringException - If unregistration fails

  • UnsupportedOperationException - If using Floating Server v1 API

Description: Unregisters a user from the specified license, freeing up a user slot. Only available with Floating Server v2 API.

Feature Management Methods

registerFeatureForUserV2

Parameters:

  • licenseId (Long): The license identifier

  • payload (RegisterFeatureForUserRequest): Feature registration details containing user and feature code

Returns: RegisterFeatureForUserResponse - Registration result

Throws:

  • LicenseSpringException - If registration fails

  • UnsupportedOperationException - If using Floating Server v1 API

Description: Registers a feature allocation for a user under the specified license. Only available with Floating Server v2 API.

unregisterFeatureForUserV2

Parameters:

  • licenseId (Long): The license identifier

  • payload (UnregisterFeatureForUserRequest): Feature unregistration details containing user and feature code

Throws:

  • LicenseSpringException - If release fails

  • UnsupportedOperationException - If using Floating Server v1 API

Description: Releases a feature allocation for a user, freeing up the feature slot. Only available with Floating Server v2 API.

Consumption Tracking Methods

addConsumptionToLicenseV2

Parameters:

  • licenseId (Long): The license identifier

  • payload (AddConsumptionToLicenseRequest): Consumption details to record

Returns: AddConsumptionToLicenseResponse - Consumption recording result

Throws:

  • LicenseSpringException - If consumption recording fails

  • UnsupportedOperationException - If using Floating Server v1 API

Description: Records consumption usage against the specified license. Only available with Floating Server v2 API.

addConsumptionToFeatureV2

Parameters:

  • licenseId (Long): The license identifier

  • payload (AddConsumptionToFeatureRequest): Feature consumption details to record

Returns: AddConsumptionToFeatureResponse - Feature consumption recording result

Throws:

  • LicenseSpringException - If consumption recording fails

  • UnsupportedOperationException - If using Floating Server v1 API

Description: Records consumption usage against a specific feature within the license. Only available with Floating Server v2 API.

Getting Started

1

Configure Proxy and Product

2

Initialize Service

3

Add a New User

Default user created is admin/admin.

4

Retrieve Licenses

5

Register User to License

circle-info

Note: All methods documented here are only available when using Floating Server v2 API. The service automatically detects API version on initialization.

Was this helpful?