10Duke Scale SDK for Java
|
Interface to implement for storing tokens that are used with 10Duke Scale API by the 10Duke Scale SDK for Java.
Public Member Functions | |
List< TokenStoreLicenseCheckoutResult > | all () |
Retrieves all currently held TokenStoreLicenseCheckoutResult objects. | |
List< TokenStoreLicenseCheckoutResult > | listByProductName (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. | |
List< TokenStoreLicenseCheckoutResult > tenduke.scale.api.TokenStore.all | ( | ) |
Retrieves all currently held TokenStoreLicenseCheckoutResult objects.
Implemented in tenduke.scale.api.InMemoryTokenStore, and tenduke.scale.client.FileSystemTokenStore.
TokenStoreLicenseCheckoutResult tenduke.scale.api.TokenStore.findByLeaseId | ( | String | leaseId | ) |
Retrieves a TokenStoreLicenseCheckoutResult by its lease id.
leaseId | for filtering by lease id. |
Implemented in tenduke.scale.api.InMemoryTokenStore, and tenduke.scale.client.FileSystemTokenStore.
List< TokenStoreLicenseCheckoutResult > tenduke.scale.api.TokenStore.listByProductName | ( | String | productName | ) |
Retrieves all TokenStoreLicenseCheckoutResult objects associated to given product name.
productName | for filtering by product name. |
Implemented in tenduke.scale.api.InMemoryTokenStore, and tenduke.scale.client.FileSystemTokenStore.
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.
leaseId | used to identify the token. |
Implemented in tenduke.scale.api.InMemoryTokenStore, and tenduke.scale.client.FileSystemTokenStore.
void tenduke.scale.api.TokenStore.save | ( | TokenStoreLicenseCheckoutResult | checkoutResult | ) |
Stores a given TokenStoreLicenseCheckoutResult.
checkoutResult | Object 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.