EUDCCVerifier
public struct EUDCCVerifier
An EUDCC Verifier
-
Creates a new instance of
EUDCCVerifier
Declaration
Swift
public init( trustService: EUDCCTrustService )
Parameters
trustService
The EUDCCTrustService
-
The VerificationResult
See moreDeclaration
Swift
enum VerificationResult
-
Verify
EUDCC
and retrieve aVerificationResult
Declaration
Swift
func verify( eudcc: EUDCC, completion: @escaping (VerificationResult) -> Void )
Parameters
eudcc
The
EUDCC
that should be verifiedcompletion
The completion handler taking in the
VerificationResult
-
Verify EUDCC against a given sequence of EUDCC TrustCertificates
Declaration
Swift
func verify<Certificates: Sequence>( eudcc: EUDCC, against trustCertificates: Certificates ) -> VerificationResult where Certificates.Element == EUDCC.TrustCertificate
Parameters
eudcc
The EUDCC
trustCertificates
The sequence of EUDCC TrustCertificate
Return Value
A VerificationResult
-
Verify EUDCC VerificationCandidate
Declaration
Swift
func verify( candidate: EUDCC.VerificationCandidate ) -> Bool
Parameters
candidate
The EUDCC VerificationCandidate that should be verified
Return Value
Bool value if VerificationCandidate verified successfully