AuthTokenContext.Builder

  • AuthTokenContext.Builder is used to create an AuthTokenContext instance.

  • It provides methods to set optional task and vehicle IDs for authentication token claims.

  • The build() method creates a new AuthTokenContext with the provided information.

  • A NullPointerException is thrown if any required values are not set during the build process.

public static abstract class AuthTokenContext.Builder extends Object

Builder for AuthTokenContext.

Public Method Summary

AuthTokenContext
build()
Returns new AuthTokenContext instance with the state set by the Builder.
abstract AuthTokenContext.Builder
setTaskId(String taskId)
Sets the optional task id for the call if it is a required auth token claim.
abstract AuthTokenContext.Builder
setVehicleId(String vehicleId)
Sets the optional vehicle id for the call if it is a required auth token claim.

Inherited Method Summary

Public Methods

public AuthTokenContext build ()

Returns new AuthTokenContext instance with the state set by the Builder.

Throws
NullPointerException if any non-nullable values are not set.

public abstract AuthTokenContext.Builder setTaskId (String taskId)

Sets the optional task id for the call if it is a required auth token claim.

public abstract AuthTokenContext.Builder setVehicleId (String vehicleId)

Sets the optional vehicle id for the call if it is a required auth token claim.