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

Detailed Description

Interface to implement for storing tokens that are used with 10Duke Scale API by the 10Duke Scale SDK for Java.

Inheritance diagram for tenduke.scale.api.TokenStore:
tenduke.scale.api.InMemoryTokenStore tenduke.scale.client.FileSystemTokenStore

Public Member Functions

List< TokenStoreLicenseCheckoutResultall ()
 Retrieves all currently held TokenStoreLicenseCheckoutResult objects.
 
List< TokenStoreLicenseCheckoutResultlistByProductName (String productName)
 Retrieves all TokenStoreLicenseCheckoutResult objects associated to given product name.
 
TokenStoreLicenseCheckoutResult findByLeaseId (String leaseId)
 Retrieves a TokenStoreLicenseCheckoutResult by its lease id.
 
void save (TokenStoreLicenseCheckoutResult checkoutResult)
 Stores a given TokenStoreLicenseCheckoutResult.
 
void removeSafelyByLeaseId (String leaseId)
 Removes a token by its lease id.
 

Member Function Documentation

◆ all()

List< TokenStoreLicenseCheckoutResult > tenduke.scale.api.TokenStore.all ( )

Retrieves all currently held TokenStoreLicenseCheckoutResult objects.

Returns
all tokens.

Implemented in tenduke.scale.api.InMemoryTokenStore, and tenduke.scale.client.FileSystemTokenStore.

◆ findByLeaseId()

TokenStoreLicenseCheckoutResult tenduke.scale.api.TokenStore.findByLeaseId ( String leaseId)

Retrieves a TokenStoreLicenseCheckoutResult by its lease id.

Parameters
leaseIdfor filtering by lease id.
Returns
The token matching the lease id or null.

Implemented in tenduke.scale.api.InMemoryTokenStore, and tenduke.scale.client.FileSystemTokenStore.

◆ listByProductName()

List< TokenStoreLicenseCheckoutResult > tenduke.scale.api.TokenStore.listByProductName ( String productName)

Retrieves all TokenStoreLicenseCheckoutResult objects associated to given product name.

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

Implemented in tenduke.scale.api.InMemoryTokenStore, and tenduke.scale.client.FileSystemTokenStore.

◆ removeSafelyByLeaseId()

void tenduke.scale.api.TokenStore.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.api.InMemoryTokenStore, and tenduke.scale.client.FileSystemTokenStore.

◆ save()

void tenduke.scale.api.TokenStore.save ( TokenStoreLicenseCheckoutResult checkoutResult)

Stores a given TokenStoreLicenseCheckoutResult.

Parameters
checkoutResultObject that contains the information used to checkout a license and the resulting license token to store.

Implemented in tenduke.scale.api.InMemoryTokenStore, and tenduke.scale.client.FileSystemTokenStore.


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