VirgilCardVerifier
@objc(VSSVirgilCardVerifier)
public final class VirgilCardVerifier : NSObject, CardVerifier
Virgil implementation of CardVerifier protocol By default verifies Card’s self signature and Virgil Cards Service signature
-
Signer identifier for self signatures
Declaration
Swift
@objc public static var selfSignerIdentifier: String
-
Signer identifier for Virgil Cards Service signatures
Declaration
Swift
@objc public static var virgilSignerIdentifier: String
-
Base64 encoded string with Virgil Service’s Public Key for verifying Virgil Cards Service signatures
Note
Can be found hereDeclaration
Swift
@objc public static var virgilPublicKeyBase64: String
-
Crypto instance
Declaration
Swift
@objc public let crypto: VirgilCrypto
-
Imported Virgil Service’s Public Key for verifying Virgil Cards Service signatures
Declaration
Swift
@objc public let virgilPublicKey: VirgilPublicKey
-
VirgilCardVerifier will verify self signature if true
Declaration
Swift
@objc public var verifySelfSignature: Bool
-
VirgilCardVerifier will verify Virgil Cards Service signatures if true
Declaration
Swift
@objc public var verifyVirgilSignature: Bool
-
Array with collections of verifiers
Important
VirgilCardVerifier verifies Card if it contains signature from AT LEAST one verifier from EACH WhitelistDeclaration
Swift
@objc public var whitelists: [Whitelist]
-
Initializer
Important
VirgilCardVerifier verifies Card if it contains signature from AT LEAST one verifier from EACH WhitelistDeclaration
Swift
@objc public init?(crypto: VirgilCrypto, whitelists: [Whitelist] = [])
Parameters
crypto
VirgilCrypto instance
whitelists
collections of verifiers
-
Verifies Card instance using set rules
Important
VirgilCardVerifier verifies Card if it contains signature from AT LEAST one verifier from EACH WhitelistDeclaration
Swift
public func verifyCard(_ card: Card) -> Bool
Parameters
card
Card to verify
Return Value
true if Card verified, false otherwise