Authenticator
public protocol Authenticator
Generic Authenticator type for ePA (elektronische Patientenakte) authentication
-
Read the certificate info corresponding to the signing process.
Declaration
Swift
func certificateInfo() -> Executable<Authn.CertificateInfo>
Return Value
Executor that emit a
CertificateInfo
holding the x509 certificate raw data and the signing algorithm. -
Perform the ePA authentication process given a received challenge.
Declaration
Swift
func authenticate(challenge: Data) -> Executable<Signature>
Parameters
challenge
Challenge received to perform the authentication upon on.
Return Value
Executor that emits a
Signature
(typealias forData
) for the givenchallenge
that should be verifiable with theAuthn.CertificateInfo
fromself.certificateInfo()