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 for Data) for the given challenge that should be verifiable with the Authn.CertificateInfo from self.certificateInfo()