addDocRequest

fun addDocRequest(docType: String, nameSpaces: Map<String, Map<String, Boolean>>, docRequestInfo: DocRequestInfo? = null): DeviceRequest.Builder

Adds a document request to the builder.

Return

the builder.

Parameters

docType

the document type to request.

nameSpaces

the namespaces, data elements, and intent-to-retain values.

docRequestInfo

a DocRequestInfo with additional information or null.


suspend fun addDocRequest(docType: String, nameSpaces: Map<String, Map<String, Boolean>>, docRequestInfo: DocRequestInfo? = null, readerKey: AsymmetricKey.X509Compatible? = null): DeviceRequest.Builder

Adds a document request to the builder.

If reader authentication is used, the certificate chain has more than one certificate, and the last certificate is a root certificate (self-signed), it is excluded.

Return

the builder.

Parameters

docType

the document type to request.

nameSpaces

the namespaces, data elements, and intent-to-retain values.

docRequestInfo

a DocRequestInfo with additional information or null.

readerKey

the key to sign with and its certificate chain or null to not use reader auth. If the certificate chain has more than one certificate, and the last certificate is a root certificate (self-signed), it is excluded.