CLASS
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
public var status: TransferStatus = .initialized
public var flow: FlowType
public init(parameters: [String: Any], qrCode: Data, openId4VpVerifierApiUri: String?) throws
public func startQrEngagement() async throws -> Data?
public func receiveRequest() async throws -> [String: Any]
Receive request from an openid4vp URL
- Returns: The requested items.
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
Name | Description |
---|---|
userAccepted | True if user accepted to send the response |
itemsToSend | The selected items to send organized in document types and namespaces |