The AuthTokenContext class encapsulates the state needed to generate an auth token for a given request and is provided when AuthTokenFactory#getToken is called.
Nested Class Summary
interface | AuthTokenContext.AuthTokenFactory | Instances of this interface will be asked to provide an authorization token when various operations are performed. | |
class | AuthTokenContext.Builder | Builder for AuthTokenContext. |
Public Constructor Summary
Public Method Summary
static AuthTokenContext.Builder |
builder()
Returns new default Builder instance.
|
abstract String |
getTaskId()
Returns the optional task id for the call if it is a required auth token claim.
|
abstract String |
getVehicleId()
Returns the optional vehicle id for the call if it is a required auth token
claim.
|
abstract AuthTokenContext.Builder |
toBuilder()
Returns new Builder instance set with current AuthTokenContext state.
|
Inherited Method Summary
Public Constructors
public AuthTokenContext ()
Public Methods
public static AuthTokenContext.Builder builder ()
Returns new default Builder instance.
public abstract String getTaskId ()
Returns the optional task id for the call if it is a required auth token claim.
public abstract String getVehicleId ()
Returns the optional vehicle id for the call if it is a required auth token claim.
public abstract AuthTokenContext.Builder toBuilder ()
Returns new Builder instance set with current AuthTokenContext state.