Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.08 KB

OpenId4VCIService.md

File metadata and controls

42 lines (31 loc) · 1.08 KB

CLASS

OpenId4VCIService

Contents

  • Methods
    • issueDocument(docType:format:useSecureEnclave:)
    • presentationAnchor(for:)
public class OpenId4VCIService: NSObject, ASWebAuthenticationPresentationContextProviding

Methods

issueDocument(docType:format:useSecureEnclave:)

public func issueDocument(docType: String, format: DataFormat, useSecureEnclave: Bool) async throws -> Data

Issue a document with the given docType using OpenId4Vci protocol

  • Parameters:
    • docType: the docType of the document to be issued
    • format: format of the exchanged data
    • useSecureEnclave: use secure enclave to protect the private key
  • Returns: The data of the document

Parameters

Name Description
docType the docType of the document to be issued
format format of the exchanged data
useSecureEnclave use secure enclave to protect the private key

presentationAnchor(for:)

public func presentationAnchor(for session: ASWebAuthenticationSession)
-> ASPresentationAnchor