public class MapboxAccounts
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SKU_ID_MAPS_MAUS
Maps skuId is 2 base-62 characters identifying the SKU.
|
static java.lang.String |
SKU_ID_NAVIGATION_MAUS
Navigation skuId is 2 base-62 characters identifying the maus SKU.
|
static java.lang.String |
SKU_ID_NAVIGATION_TRIPS
Navigation skuId is 2 base-62 characters identifying the trips SKU.
|
static java.lang.String |
SKU_ID_VISION_FLEET_MAUS
Vision Fleet skuId is 2 base-62 characters identifying the SKU.
|
static java.lang.String |
SKU_ID_VISION_MAUS
Vision skuId is 2 base-62 characters identifying the SKU.
|
| Constructor and Description |
|---|
MapboxAccounts() |
| Modifier and Type | Method and Description |
|---|---|
static long |
getNow()
Provides a timestamp, in milliseconds, used to compute the timestamp component.
|
static java.lang.String |
obtainEndUserId()
endUserId is a string that is unique per end user.
|
static java.lang.String |
obtainMapsSkuUserToken(java.lang.String userId)
Builds a v1 maps SKU end-user token.
|
static java.lang.String |
obtainNavigationSkuSessionToken()
Builds a v1 navigation SKU session token.
|
static java.lang.String |
obtainNavigationSkuUserToken(java.lang.String userId)
Builds a v1 navigation SKU end-user token.
|
static java.lang.String |
obtainVisionFleetSkuUserToken(java.lang.String userId)
Builds a v1 vision SKU end-user token.
|
static java.lang.String |
obtainVisionSkuUserToken(java.lang.String userId)
Builds a v1 vision SKU end-user token.
|
public static final java.lang.String SKU_ID_MAPS_MAUS
public static final java.lang.String SKU_ID_NAVIGATION_MAUS
public static final java.lang.String SKU_ID_NAVIGATION_TRIPS
public static final java.lang.String SKU_ID_VISION_MAUS
public static final java.lang.String SKU_ID_VISION_FLEET_MAUS
public static java.lang.String obtainMapsSkuUserToken(java.lang.String userId)
A SKU token is created by concatenating a set of predefined fields. All fields have constant character counts, except endUserId, which may have different lengths in different clients and so will be the last field of end-user SKU tokens. Because of that rule and the tokenVersion field, we do not need a separator between fields: the tokenVersion will tell the parser which fields to expect and the length of each expected field.
public static java.lang.String obtainNavigationSkuUserToken(java.lang.String userId)
A SKU token is created by concatenating a set of predefined fields. All fields have constant character counts, except endUserId, which may have different lengths in different clients and so will be the last field of end-user SKU tokens. Because of that rule and the tokenVersion field, we do not need a separator between fields: the tokenVersion will tell the parser which fields to expect and the length of each expected field.
public static java.lang.String obtainNavigationSkuSessionToken()
A SKU token is created by concatenating a set of predefined fields. All fields have constant character counts, except endUserId, which may have different lengths in different clients and so will be the last field of end-user SKU tokens. Because of that rule and the tokenVersion field, we do not need a separator between fields: the tokenVersion will tell the parser which fields to expect and the length of each expected field.
public static java.lang.String obtainVisionSkuUserToken(java.lang.String userId)
A SKU token is created by concatenating a set of predefined fields. All fields have constant character counts, except endUserId, which may have different lengths in different clients and so will be the last field of end-user SKU tokens. Because of that rule and the tokenVersion field, we do not need a separator between fields: the tokenVersion will tell the parser which fields to expect and the length of each expected field.
public static java.lang.String obtainVisionFleetSkuUserToken(java.lang.String userId)
A SKU token is created by concatenating a set of predefined fields. All fields have constant character counts, except endUserId, which may have different lengths in different clients and so will be the last field of end-user SKU tokens. Because of that rule and the tokenVersion field, we do not need a separator between fields: the tokenVersion will tell the parser which fields to expect and the length of each expected field.
public static long getNow()
public static java.lang.String obtainEndUserId()