TransferHelper

class TransferHelper(settingsModel: SettingsModel, documentStore: DocumentStore, trustManager: TrustManager, context: Context, deviceRetrievalHelper: DeviceRetrievalHelper, onError: (Throwable) -> Unit)

Transfer Helper provides helper functions for starting to process a presentation request, as well as finishing processing the request to get response bytes to send to requesting party (after user has accepted one or more dialog prompts)

Constructors

Link copied to clipboard
constructor(settingsModel: SettingsModel, documentStore: DocumentStore, trustManager: TrustManager, context: Context, deviceRetrievalHelper: DeviceRetrievalHelper, onError: (Throwable) -> Unit)

Types

Link copied to clipboard
class Builder(val settingsModel: SettingsModel, val documentStore: DocumentStore, val trustManager: TrustManager, val context: Context, deviceRetrievalHelper: DeviceRetrievalHelper? = null, var onError: (Throwable) -> Unit = {})

Builder class returning a new TransferHelper instance with a new deviceRetrievalHelper object.

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun finishProcessingRequest(requestedDocType: String, credentialId: String, documentRequest: DocumentRequest, onFinishedProcessing: (ByteArray) -> Unit, onAuthenticationKeyLocked: (mdocCredential: MdocCredential) -> Unit, keyUnlockData: KeyUnlockData? = null, credential: MdocCredential? = null)

Finish processing the request and produce response bytes to be sent to requesting party. This is called once the user accepted various prompts (ie. immediately after the consent prompt,

Link copied to clipboard
fun sendResponse(deviceResponseBytes: ByteArray)

Send response bytes of credential data to requesting party

Link copied to clipboard

Start processing the presentation request and return a PresentationRequestData object that is used in finishProcessingRequest() to generate response bytes to send to requesting party.