10Duke Scale SDK for Java
Loading...
Searching...
No Matches
tenduke.scale.api.TokenManager Interface Reference

Detailed Description

Interface to implement for managing tokens and related items that are used with 10Duke Scale API by the 10Duke Scale SDK for Java.

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

Public Member Functions

List< LicenseTokenall ()
 Retrieves all LicenseTokens.
 
List< LicenseTokenlistByProductName (String productName)
 Retrieves all LicenseTokens associated to given product name.
 
LicenseToken findByLeaseId (String leaseId)
 Retrieves a LicenseToken by its lease id.
 
LicenseToken save (TokenStoreLicenseCheckoutResult checkoutResult)
 Stores the information in the checkout result object and converts it to a LicenseToken.
 
void removeSafelyByLeaseId (String leaseId)
 Removes a token by its lease id.
 

Member Function Documentation

◆ all()

List< LicenseToken > tenduke.scale.api.TokenManager.all ( )

Retrieves all LicenseTokens.

Returns
all tokens.

Implemented in tenduke.scale.client.DefaultTokenManager.

◆ findByLeaseId()

LicenseToken tenduke.scale.api.TokenManager.findByLeaseId ( String leaseId)

Retrieves a LicenseToken by its lease id.

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

Implemented in tenduke.scale.client.DefaultTokenManager.

◆ listByProductName()

List< LicenseToken > tenduke.scale.api.TokenManager.listByProductName ( String productName)

Retrieves all LicenseTokens associated to given product name.

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

Implemented in tenduke.scale.client.DefaultTokenManager.

◆ removeSafelyByLeaseId()

void tenduke.scale.api.TokenManager.removeSafelyByLeaseId ( 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.

Implemented in tenduke.scale.client.DefaultTokenManager.

◆ save()

LicenseToken tenduke.scale.api.TokenManager.save ( 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.

Implemented in tenduke.scale.client.DefaultTokenManager.


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