public class RelyingPartyUtils
Functions for relying parties: generate signature requests, invoke wallet app, and validate the response.
Build a unique signature request and invoke the wallet app. The nonce for the request is returned and MUST be compared in the response.
public static func invokeSignatureRequest(requiredOids: [String], walletUrl: String, callbackUrl: String) -> String?
An array of required OIDs, in dotted notation, or empty if no information is required.
The universal link for the wallet application.
The universal link for the relying party application.
A unique nonce for this request. This nonce must be the same as in the response.
The user information object with the information from the wallet. This object is returned by theSee more
public class UserInfo
Parse the universal link that was received from the wallet callback.
public static func parseCallbackUniversalLink(_ url: URL) -> UserInfo?
The URL as received in the
continue: NSUserActivityoverload in the
UserInfoobject with response details, or
nilif an error occured.
Validate the credential and any claims in the specified user info response.
public static func validateUserInfo(userInfo: UserInfo, onSuccess: @escaping (Bool) -> Void, onError: @escaping (String) -> Void)
UserInfoobject as received from the
Success callback, invoked on the main thread when the credential and all claims are valid.
Failure callback, invoked on the main thread with the error message.