SecureQRQrPayloadService

class SecureQRQrPayloadService(presentationBuilder: SecureQRPresentationBuilder = SecureQRPresentationBuilder(), generator: SecureQRGenerator = SecureQRGenerator())

Constructors

Link copied to clipboard
constructor(presentationBuilder: SecureQRPresentationBuilder = SecureQRPresentationBuilder(), generator: SecureQRGenerator = SecureQRGenerator())

Functions

Link copied to clipboard
suspend fun makeMdocSignedQrPayload(cred: PresentationCredential, docType: String, issuedAt: Long, validitySeconds: Int = 180, dropByteStringClaims: Boolean = true, excludedElementIdentifiers: Set<String> = emptySet()): String

Builds the mdoc SignedQR transport payload for presenting a held credential. Presents cred's issued IssuerSigned (optionally with some claims omitted) and device-signs the signed-QR SessionTranscript with cred's key.

Link copied to clipboard
suspend fun makeV2TransportPayload(cred: PresentationCredential, sdJwtPresentationWithoutKb: String, issuedAt: Long, validitySeconds: Int = 180): String

Returns the v2 QR transport payload: base64url(zlib(JSON{vc1,vc2,vc3})) The app should just feed this string into SecureQRRenderer.encodeFrames(...)