|
10Duke Scale SDK for Java
|
Interface to implement for managing tokens and related items that are used with 10Duke Scale API by the 10Duke Scale SDK for Java.
Public Member Functions | |
| List< LicenseToken > | all () |
Retrieves all LicenseTokens. | |
| List< LicenseToken > | listByProductName (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. | |
| List< LicenseToken > tenduke.scale.api.TokenManager.all | ( | ) |
Retrieves all LicenseTokens.
Implemented in tenduke.scale.client.DefaultTokenManager.
| LicenseToken tenduke.scale.api.TokenManager.findByLeaseId | ( | String | leaseId | ) |
Retrieves a LicenseToken by its lease id.
| leaseId | for filtering by lease id. |
Implemented in tenduke.scale.client.DefaultTokenManager.
| List< LicenseToken > tenduke.scale.api.TokenManager.listByProductName | ( | String | productName | ) |
Retrieves all LicenseTokens associated to given product name.
| productName | for filtering by product name. |
Implemented in tenduke.scale.client.DefaultTokenManager.
| 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.
| leaseId | used to identify the token. |
Implemented in tenduke.scale.client.DefaultTokenManager.
| LicenseToken tenduke.scale.api.TokenManager.save | ( | TokenStoreLicenseCheckoutResult | checkoutResult | ) |
Stores the information in the checkout result object and converts it to a LicenseToken.
| checkoutResult | Object that contains the information used to checkout a license and the resulting license token to store. |
LicenseToken representation from the given tenduke.sdk.core.model.jwt.JwtToken. Implemented in tenduke.scale.client.DefaultTokenManager.