Interface DispatchContext.MobileSdkDispatcherResponseBuilder
- Enclosing interface:
DispatchContext
public static interface DispatchContext.MobileSdkDispatcherResponseBuilder
An object that can be used to build a
DispatcherResponse that is compatible
with the Nevis Mobile Authentication SDK.
This builder will take care of generating an out-of-band payload with the format expected by
the Nevis Mobile Authentication SDK.-
Method Summary
Modifier and TypeMethodDescriptionadditionalInformation(@Nullable String additionalInformation) Additional information that is not included in the out-of-band payload, but that is sent by the dispatcher and can be useful to the client receiving the dispatched token.build()Builds aDispatcherResponse.httpResponse(String response) The value of theresponseattribute included in the HTTP response returned to the HTTP client that invoked the dispatch token service.outOfBandPayloadData(@Nullable String outOfBandPayloadData) The additional data that can be included as part of the out-of-band payload.The redeem URL that must be included in the out-of-band payload.statusResponse(String status) The value of thetokenInformation.dispatcherInformation.responseattribute returned by the status service.
-
Method Details
-
redeemUrl
The redeem URL that must be included in the out-of-band payload. This is required by the Nevis Mobile Authentication SDK to know which is the URL that must be used to redeem the token.In the case of the out-of-the box dispatchers of nevisFIDO, this is obtained from the
nevisfido.ymlfile by implementing theConfigurableinterface.Providing the redeem URL is required.
- Parameters:
redeemUrl- the redeem URL.- Returns:
- a
MobileSdkDispatcherResponseBuilder
-
outOfBandPayloadData
DispatchContext.MobileSdkDispatcherResponseBuilder outOfBandPayloadData(@Nullable String outOfBandPayloadData) The additional data that can be included as part of the out-of-band payload. This data can be retrieved by the client using the SDK throughOutOfBandPayload.datajava swift objc flutter react native.Providing this data is optional.
- Parameters:
outOfBandPayloadData- the additional data to be included in the out-of-band payload.- Returns:
- a
MobileSdkOutOfBandPayloadBuilder - See Also:
-
statusResponse
The value of thetokenInformation.dispatcherInformation.responseattribute returned by the status service. The status service informs about operations, and this attribute can be used to include information about the dispatching of the token.Providing the status information is required.
- Parameters:
status- the status information to be exposed in the status service- Returns:
- a
MobileSdkDispatcherResponseBuilder - See Also:
-
httpResponse
The value of theresponseattribute included in the HTTP response returned to the HTTP client that invoked the dispatch token service.Providing the response information is required.
- Parameters:
response- the information to be included in the HTTP response- Returns:
- a
MobileSdkDispatcherResponseBuilder - See Also:
-
additionalInformation
DispatchContext.MobileSdkDispatcherResponseBuilder additionalInformation(@Nullable String additionalInformation) Additional information that is not included in the out-of-band payload, but that is sent by the dispatcher and can be useful to the client receiving the dispatched token.This additional information is optional.
- Parameters:
additionalInformation- the additional information- Returns:
- a
MobileSdkDispatcherResponseBuilder - See Also:
-
build
Builds aDispatcherResponse.- Returns:
- a
DispatcherResponse - Throws:
DispatchException- if there is a problem generating theDispatchResponse
-