10Duke Scale SDK for Java
|
Data class that manages tokens used by 10Duke Scale SDK for Java.
Public Member Functions | |
List< LicenseToken > | all () |
Retrieves all LicenseToken s. | |
List< LicenseToken > | listByProductName (final String productName) |
Retrieves all LicenseToken s 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 |
List< LicenseToken > tenduke.scale.client.DefaultTokenManager.all | ( | ) |
LicenseToken tenduke.scale.client.DefaultTokenManager.findByLeaseId | ( | final String | leaseId | ) |
Retrieves a LicenseToken
by its lease id.
leaseId | for filtering by lease id. |
Implements tenduke.scale.api.TokenManager.
List< LicenseToken > tenduke.scale.client.DefaultTokenManager.listByProductName | ( | final String | productName | ) |
Retrieves all LicenseToken
s associated to given product name.
productName | for filtering by product name. |
Implements tenduke.scale.api.TokenManager.
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.
leaseId | used to identify the token. |
Implements tenduke.scale.api.TokenManager.
LicenseToken tenduke.scale.client.DefaultTokenManager.save | ( | final 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
. Implements tenduke.scale.api.TokenManager.