10Duke Scale SDK for Java
Loading...
Searching...
No Matches
tenduke.scale.client.DefaultTokenManager Class Reference

Detailed Description

Data class that manages tokens used by 10Duke Scale SDK for Java.

Inheritance diagram for tenduke.scale.client.DefaultTokenManager:
tenduke.scale.api.TokenManager

Public Member Functions

List< LicenseTokenall ()
 Retrieves all LicenseTokens.
 
List< LicenseTokenlistByProductName (final String productName)
 Retrieves all LicenseTokens associated to given product name.
 
LicenseToken findByLeaseId (final String leaseId)
 Retrieves a LicenseToken by its lease id.
 
LicenseToken save (final TokenStoreLicenseCheckoutResult token)
 Stores the information in the checkout result object and converts it to a LicenseToken.
 
void removeSafelyByLeaseId (final String leaseId)
 Removes a token by its lease id.
 
- Public Member Functions inherited from tenduke.scale.api.TokenManager

Member Function Documentation

◆ all()

List< LicenseToken > tenduke.scale.client.DefaultTokenManager.all ( )

Retrieves all LicenseTokens.

Returns
all tokens.

Implements tenduke.scale.api.TokenManager.

◆ findByLeaseId()

LicenseToken tenduke.scale.client.DefaultTokenManager.findByLeaseId ( final String leaseId)

Retrieves a LicenseToken by its lease id.

Parameters
leaseIdfor filtering by lease id.
Returns
token by lease id.

Implements tenduke.scale.api.TokenManager.

◆ listByProductName()

List< LicenseToken > tenduke.scale.client.DefaultTokenManager.listByProductName ( final String productName)

Retrieves all LicenseTokens associated to given product name.

Parameters
productNamefor filtering by product name.
Returns
all tokens filtered by product name.

Implements tenduke.scale.api.TokenManager.

◆ removeSafelyByLeaseId()

void tenduke.scale.client.DefaultTokenManager.removeSafelyByLeaseId ( final String leaseId)

Removes a token by its lease id.

Does not throw errors if the leaseId is not found.

Parameters
leaseIdused to identify the token.

Implements tenduke.scale.api.TokenManager.

◆ save()

LicenseToken tenduke.scale.client.DefaultTokenManager.save ( final TokenStoreLicenseCheckoutResult checkoutResult)

Stores the information in the checkout result object and converts it to a LicenseToken.

Parameters
checkoutResultObject that contains the information used to checkout a license and the resulting license token to store.
Returns
LicenseToken representation from the given tenduke.sdk.core.model.jwt.JwtToken.

Implements tenduke.scale.api.TokenManager.


The documentation for this class was generated from the following file: