目录

CLASS info
public class CreateWalletPassRequest extends Objects implements Parcelable
Creates a pass request. It is recommended that you instantiate CreateWalletPassRequest by using the JWT parameterized constructor so that the JWT will be encapsulated into the format required by HMS Core. Then, the request will be made by using WalletPassClient.

Nested Class Summary

TypeNameDesc
classCreateWalletPassRequest.BuilderBuilder to create a pass request.

Public Constructor Summary

Constructor name

public CreateWalletPassRequest(String jwt)

Instantiates the pass request object by using the parameterized constructor. The parameter used by the constructor is jwt String.

Public Method Summary

Return typeMethod name
static CreateWalletPassRequest.Builder

getBuilder()

Instantiates CreateWalletPassRequest.Builder.

voidwriteToParcel(Parcel dest, int flags)
String

getWalletPassJwtJson()

Obtains a JWT.

Public Constructors

constructor

public CreateWalletPassRequest(String jwt)

Creates a JWT. This is the recommended method. For example, instantiate PassObject, call toJson() to obtain the JSON string for creating the JWT, and then convert the JSON string to the JWT on your server. Finally, instantiate the JWT by calling CreateWalletPassRequest(String jwt).

Parameters

Parameter nameParameter desc
StringJWT. To create a JWT, provide issuerId, privateKey, and the JSON string of the current pass.

Public Method

Method

public static CreateWalletPassRequest.Builder getBuilder()

Creates a request object using the builder method.
Method

public void writeToParcel(Parcel dest, int flags)

Flattens the object into a Parcel.
Method

public String getWalletPassJwtJson()

Obtains a JWT.