CardManagerParams
@objc(VSSCardManagerParams)
public final class CardManagerParams : NSObject
Contains parameters for initializing CardManager
-
Crypto instance
Declaration
Swift
@objc public let crypto: VirgilCrypto
-
Card Verifier instance used for verifying Cards
Declaration
Swift
@objc public let cardVerifier: CardVerifier
-
ModelSigner instance used for self signing Cards
Declaration
Swift
@objc public var modelSigner: ModelSigner
-
CardClient instance used for performing queries
Declaration
Swift
@objc public var cardClient: CardClientProtocol
-
Callback used for custom signing RawSignedModel, which takes RawSignedModel to sign and competion handler, called with signed RawSignedModel or provided error
Declaration
Swift
@objc public var signCallback: ((RawSignedModel, @escaping (RawSignedModel?, Error?) -> Void) -> Void)?
-
Initializer
Declaration
Swift
@objc public init(crypto: VirgilCrypto, accessTokenProvider: AccessTokenProvider, cardVerifier: CardVerifier)
Parameters
crypto
VirgilCrypto instance
accessTokenProvider
AccessTokenProvider instance for getting Access Token when performing queries
cardVerifier
Card Verifier instance for verifyng Cards