Skip to content

Latest commit

 

History

History
76 lines (53 loc) · 1.61 KB

File metadata and controls

76 lines (53 loc) · 1.61 KB

CLASS

OpenId4VpService

Contents

  • Properties
    • status
    • flow
  • Methods
    • init(parameters:qrCode:openId4VpVerifierApiUri:)
    • startQrEngagement()
    • receiveRequest()
    • sendResponse(userAccepted:itemsToSend:onSuccess:)
public class OpenId4VpService: PresentationService

Implements remote attestation presentation to online verifier Implementation is based on the OpenID4VP – Draft 18 specification

Properties

status

public var status: TransferStatus = .initialized

flow

public var flow: FlowType

Methods

init(parameters:qrCode:openId4VpVerifierApiUri:)

public init(parameters: [String: Any], qrCode: Data, openId4VpVerifierApiUri: String?) throws

startQrEngagement()

public func startQrEngagement() async throws -> Data?

receiveRequest()

public func receiveRequest() async throws -> [String: Any]

Receive request from an openid4vp URL

  • Returns: The requested items.

sendResponse(userAccepted:itemsToSend:onSuccess:)

public func sendResponse(userAccepted: Bool, itemsToSend: RequestItems, onSuccess: ((URL?) -> Void)?) async throws

Send response via openid4vp

  • Parameters:
    • userAccepted: True if user accepted to send the response
    • itemsToSend: The selected items to send organized in document types and namespaces

Parameters

Name Description
userAccepted True if user accepted to send the response
itemsToSend The selected items to send organized in document types and namespaces