AI-generated Key Takeaways
-
AuthTokenContext.Builderis used to create anAuthTokenContextinstance. -
It provides methods to set optional task and vehicle IDs for authentication token claims.
-
The
build()method creates a newAuthTokenContextwith the provided information. -
A
NullPointerExceptionis thrown if any required values are not set during the build process.
Builder for AuthTokenContext.
Public Method Summary
| AuthTokenContext |
build()
Returns new AuthTokenContext instance with the state set by the Builder.
|
| abstract AuthTokenContext.Builder | |
| 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.