Secure QRQr Payload Service
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
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(...)