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
CertificateInfoholding 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
challengeChallenge received to perform the authentication upon on.
Return Value
Executor that emits a
Signature(typealias forData) for the givenchallengethat should be verifiable with theAuthn.CertificateInfofromself.certificateInfo()